homesourcenvt

SSH

Client config

ssh_config(5) Mac OS X Manual Page

Tasks

Debugging

sshd -ddd
ssh user@host -vvv

Use RSA key authentication

ssh-keygen -t rsa
ssh-copy-id user@host

Disable password login

vim /etc/ssh/sshd_config
systemctl reload sshd

Show fignerprint

ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub

Agent forwarding

ssh-add host-b.pem
ssh -A host-a
ssh host-b

Generate public key from private key

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub

Key management

Tools

Issues

Disable DNS in case of slow login

vim /etc/ssh/sshd_config
UseDNS no

Ubuntu encrypted home directory

Put authorized_keys out of home SSH/OpenSSH/Keys - Community Help Wiki