ssh
-
Links
- http://wiki.ubuntuusers.de/SSH
- SSH Tips and Tricks
-
Usefull Stuff
ssh-add ./ssh/id_rsa
Passwort cache fuer keyfile- Public key generieren:
ssh-keygen -t rsa -b 4096
- ECDSA Key generieren:
ssh-keygen -t ecdsa -b 521
- Public key auf neuen Host kopieren:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
-
Port Forwarding:
- https://iximiuz.com/en/posts/ssh-tunnels/
-
ssh -L [local_addr:]local_port:remote_addr:remote_port [user@]sshd_addr ssh -R [remote_addr:]remote_port:local_addr:local_port [user@]gateway_addr ssh -L 8000:localhost:8000 user@ip
-
Authorized Keys
- Datei in
~/.ssh/authorized_keys
-
Root Login nur mit Keyfile
PermitRootLogin without-password
Config File
-
# ~/.ssh/config IdentityFile ~/.ssh/id_rsa Host remote HostName ip/hostname Port 22 User your-username
- https://therootcompany.com/blog/ssh-defaults-config-and-priorities/
ssh-agent
- http://unix.stackexchange.com/questions/48863/ssh-add-complains-could-not-open-a-connection-to-your-authentication-agent/48868#48868
-
Putty
- Putty benutzt pkk Dateien anstatt dem normalen Keyformat. So kann man es umwandeln:
-
puttygen my-ssh.com-key -o mykey.ppk