Difference between revisions of "Ssh"
(→SSH login without password) |
(→SSH login without password) |
||
Line 5: | Line 5: | ||
maurice:~> ssh-keygen -t dsa | maurice:~> ssh-keygen -t dsa | ||
[backup@server ~]$ ssh-keygen -t rsa | [backup@server ~]$ ssh-keygen -t rsa | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 10:29, 18 October 2013
SSH login without password
It's common to use ssh and scp for communicating and transferring files to and from a server. If you want to auto-login without a password, here's how to setup SSH to use encryption keys to do so.
- Run ssh-keygen to create an encryption key pair, the public and private keys on your PC. You can just hit return for each question.
maurice:~> ssh-keygen -t dsa [backup@server ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair. Enter file in which to save the key (/home/backup/.ssh/id_rsa): Created directory '/home/backup/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/backup/.ssh/id_rsa. Your public key has been saved in /home/backup/.ssh/id_rsa.pub.