ssh-copy-id – Perform SSH Login Without Password
If you regularly ssh to same system, ssh-copy-id allows you to login to the system directly without having to type the password each time. ssh-copy-id is a small script which copies your ssh public-key to a remote host. It appends the key to your remote authorized_keys enabling you to login without having to type your password each time.
Use it by running the following command: ‘ssh-copy-id tech@192.168.1.1‘ where ‘tech’ is the username of the remote system and ‘192.168.1.1’ its IP address. The command will ask you for the remote machine‘s password(one last time).
$ ssh-copy-id tech@192.168.1.1
tech@192.168.1.1’s password:
Now try logging into the machine, with “ssh tech@192.168.1.1“. You should get the remote systems command prompt.