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, duration hours minute second in high quality that is uploaded to the channel Phuong Nguyen 01 January 1970. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 575 times and liked it 2 visitors.