Some good doco from Digital Ocean over here: How To Use SSHFS to Mount Remote File Systems Over SSH.
Found an article: How to set up a basic jump host with SSH in Linux.
for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f "$f"; done
eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa
If you want KDE to remember your SSH key’s passphrase for your whole desktop session you can create a ~/.config/autostart/ssh-add.desktop file like this:
[Desktop Entry] Type=Application Name=ssh-add Comment=Adds my private key to my session. Exec=/usr/bin/konsole -e 'ssh-add /home/$USER/.ssh/id_rsa'
So I found out about stdbuf. To get it:
# apt-get install coreutils
If you want your ssh client to use line-buffered streams use -t -t.
So I ended up with:
# su -c "stdbuf -oL ssh -t -t /usr/bin/tail -f /var/input.log | stdbuf -oL tr -c '\\11\\12\\15\\40-\\176" myuser \ | tee -a /tmp/input.log \ | grep --line-buffered -v "...ignore..." \ >> /tmp/output.log
Holy command-line Batman!
Found this article which said:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist sudo launchctl load /System/Library/LaunchDaemons/ssh.plist
Found this article which said: open System Preferences, click Sharing and check Remote Login.
I was suffering a delay when SSHing to my Debian system. I found SSH session slow to start? It’s the DNS stupid! and solved my problem by editing /etc/ssh/sshd_config and adding:
Today I read Debian: convert ppk key for linux ssh which explained how to convert PuTTY *.ppk files to *.pem files for Linux:
sudo apt-get install putty-tools puttygen mykey.ppk -O private-openssh -o mykey.pem