Epics@GSI Webhome

Epics Installation At Raspberry Pi From Scratch Clear Log And Ssh

Introduction

    ssh_

    • delete and regenerate global keys

    ([ -f /var/log/regen_ssh_keys.log ] && sudo rm /var/log/regen_ssh_keys.log || : ; ) && 
                      sudo rm /etc/ssh/ssh_host* && 
                      sudo ssh-keygen -A
                     

    • check ~/.ssh/authorized_keys
      • optionally delete it :
        [ -f ~/.ssh/authorized_keys ] && rm ~/.ssh/authorized_keys
    • check ~/.ssh/known_hosts
      • optionally delete it :
        [ -f ~/.ssh/known_hosts ] && rm ~/.ssh/known_hosts

    clear logs

    • Before creating the next image,
      • Remove zipped files,
        clear all logs:, and
        history
        sudo su -c '(find /var/log -name "*.gz" -delete && for item in $(find /var/log/ -type f | grep -v git-daemon | grep -E -v '\.1$' ); do sudo cat /dev/null > $item;  done && history -c )'
           
        history -c


-- PeterZumbruch - 2017-05-11
-- PeterZumbruch - 2020-11-09
Topic revision: r7 - 2020-11-09, PeterZumbruch - This page was cached on 2021-10-16 - 22:50.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Imprint (german) | Privacy Policy (german)