How to Make a SSH Connection w/o Prompt of Password
Sep 23, 2021
No need to input a password when creating an ssh client to an ssh server.
Concept:
Any machine can become an ssh server by install:
$ sudo apt-get install openssl-server
you can check ssh server running status by:
$ sudo service ssh status
Note: the ssh server will be auto-run after the above installation.
Any machine can be an ssh client.
On the client machine, we will generate a pair of RSA private/public keys by:
$ ssh-keygen -r rsa
$ scp /home/bxiong/.ssh/jetson_rsa.pub bxiong@192.168.1.74:/home/bxiong/.ssh
On the server machine, add the public key to the authorized file by:
$ mv ~/.ssh/jetson_rsa.pub ~/.ssh/authorized_keys
Thne we should be able to make a ssh connection w/o prompt of inputting password now by:
$ ssh bxiong@192.168.1.74