Some good doco from Digital Ocean over here: How To Use SSHFS to Mount Remote File Systems Over SSH.
Tag Archives: ssh
How to set up a basic jump host with SSH in Linux
Found an article: How to set up a basic jump host with SSH in Linux.
Listing SSH key fringerprints
From here:
for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f "$f"; done
Using ssh-add with ssh-agent for unattended ssh
Easypeasy:
eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa
Entering SSH passphrase once in a KDE Pulse session
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'
Making SSH client use line buffered stream
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!
Restarting sshd on Mac OS X
Found this article which said:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist sudo launchctl load /System/Library/LaunchDaemons/ssh.plist
Run sshd on Mac OS X
Found this article which said: open System Preferences, click Sharing and check Remote Login.
SSH login delay on Debian
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:
UseDNS no
Converting Putty PPK files for Debian SSH
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