SSH

Useful information regarding SSH and public keys can be found here:
http://sial.org/howto/openssh/publickey-auth/

generate a public key

ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
# or
ssh-keygen -t rsa -C "purpose `date +%Y-%m-%d`" -b 2048 -f ~/.ssh/id_rsa

copy puplic key to destination

cat ~/.ssh/id_rsa.pub | ssh user@remote "cat - >> .ssh/authorized_keys"

~/.ssh/authorized_keys

See man sshd(8) for more information …

from="host.domain.tld" ssh-rsa AAAAB3Nz...

~/.ssh/known_hosts

Search for a (hashed) hostname/IP in known_hosts

ssh-keygen -F hostname

Delete a hashed hostname/IP from known_hosts

ssh-keygen -R hostname

~/.ssh/config

See man ssh_config(5) for more information …

Host = host1
        Hostname = host1.domain.tld
        Compression = yes
        CompressionLevel = 3
        User = root

Host = host2
        Hostname = host2.domain.tld
        Compression = yes
        CompressionLevel = 3
        User = root

PuTTY

http://www.chiark.greenend.org.uk/~sgtatham/putty/

If you are using Windows, you will want to use putty to connect to your beloved linux server :-)

See also my details regarding putty

linux/ssh.txt · Last modified: 2012/03/11 10:39 by tb
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0