How to Set Up Passwordless SSH Login?
Step 1: First of all open your terminal. Now type the following and hit Enter:
How to Set Up Passwordless SSH Login?
Setup Passwordless SSH Login
Step 1: First of all open your terminal. Now type the following and hit Enter:
ssh-keygen -t rsa -b 4096 -C “username@ip_address”
i-e: ssh-keygen -t rsa -b 4096 -C “faizan@192.168.0.1”
The following output will be shown in case of success:
Generating public/private RSA key pair.
Step 2: Then it will ask you the file in which you want to save that key. By default, it is like the following:
Enter file in which to save the key (/home/pc_name/.ssh/id_rsa):
You can hit enter on this.
Step 3: Then you have to enter a password to secure your keys’ files. You can type the desired password and hit Enter or just hit Enter to skip the authentication process.
Then you will see:
The key fingerprint is:
ABC123:1ABCabcAbcAbCaCabcAbcAbCCab+cAbabcAbBc username@ip_address
The key’s randomart image is:
- — -[RSA 4096] — — +
| .. ++oo+oo+|
| . ..o+o=+.+.|
| . . s . .. |
| . …|
| o.0.|
| .+, +|
| .o+*|
- — — [SHA256] — — -+
Step 4: Then you can check whether the key files are made or not by typing the following command on the terminal:
ls -l ~/.ssh/
You will see id_rsa, and id_rsa.pub files there in case of success.
Step 5: Now type the following command to upload the keys onto the server, and hit Enter.
ssh-copy-id username@ip_address
i-e: ssh-copy-id faizan@192.168.0.1
Step 6: You have to enter your SSH Server’s password. Please type the password(it will not be visible so type it once & correctly) and hit the Enter key.
Step 7: Now just type:
ssh username@ip_address
Hurrah!!! You did it. Now you will not be asked to enter your password to connect.
메타데이터
- post_id
- 04e8e1c4d2fa
- slug
- how-to-set-up-passwordless-ssh-login-04e8e1c4d2fa
- url
- https://medium.com/@faizanfaizy97/how-to-set-up-passwordless-ssh-login-04e8e1c4d2fa
- canonical_url
- https://medium.com/@faizanfaizy97/how-to-set-up-passwordless-ssh-login-04e8e1c4d2fa
- author_url
- https://medium.com/@faizanfaizy97
- status
- ok
- fetched_at
- 2026-08-10 19:02:55