SSH login using Public key and user password both required on Linux

Published: 01 January 1970
on channel: Phuong Nguyen
575
2

This video i show you how to SSH login using Public key and user password both required on Linux

Step 1. Add a passphrase
ssh-keygen -t rsa

Step 2. Copy the public key to the server only if the key is new
In your client computer enter:
ssh-copy-id -i ~/.ssh/id_rsa [email protected]

Step 3. Test if public keys are being used
Try to login to the server by entering:
ssh [email protected]

Step 4. Setup for both public key and password
Login to the ssh server (the board) and edit the /etc/ssh/sshd_config file.
Add the following line in the file:
AuthenticationMethods publickey,password

Thank for watching my video


Watch video SSH login using Public key and user password both required on Linux online without registration, duration hours minute second in high quality. This video was added by user Phuong Nguyen 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 575 once and liked it 2 people.