How to use SSH Public Key authentication

26
23



SSH keys provide a simple and yet extremely secure way to connect to a remote computer or a server.
You can get $25 at UpCloud to test SSH features:

In this video, you will learn:
0:41 Why use SSH keys
1:23 How to create SSH keys
2:14 What’s the difference between private and public keys
2:45 How to add SSH keys to a remote computer
5:18 How to disable password login and allow only the SSH key login
6:35 How to use SSH keys for password-less login
7:19 How to use SSH authentication agent and avoid typing you ssh key passphrase many times

The commands are available at

How to Set up a Virtual Private Server

How to install SSH keys

All Linux Server tutorials

Tags: #SSH #UpCloud #AverageLinuxUser

################################################

Website:

Facebook:
Twitter:

Nguồn: https://colpop.net

Xem thêm bài viết khác: https://colpop.net/cong-nghe

26 COMMENTS

  1. Having issues using my SSH key with GCP, used to work but now I get permission denied public key. I chmod 700 on the .pub file and the username is bitnami.

  2. I was struggling to solve my ssh connection issue from last 1 week almost may e more than that and you solved it..May God Bless You ..

  3. Although I haven't watched the entire Video but:

    – The plus point for the video here is that I use relatively standard language, even though I'm not fluent in English. Because of my poor English, I had to use subtitles for the Video and it was translated into my language very properly and fully.
    – Minus point in this Video is a quick guide. This Video content is for beginners to learn about SSH. Unfortunately.

    * But this is my own comment. Your video is only 8 minutes, but I have to watch it for nearly 2 hours. _ * Thanks anyway for sharing it for free. And I clicked "Like" for you. Thanks you

  4. I see you copy the key to the remote server from the client side. What if you create the keys from the server side. Do you still have to add the key to the server itself since the key already created there? Or in the case I am talking about you just copy the private key to the client (Client is the one to be used afterwards for remote access. Its just that installation of keys happening from the server side).

    PS Upon installation keys go different directory than the one they are created?

    Thank you

  5. If I have a server with key-based login only and I want access from yet another machine, how can I add the other key? I can't just use ssh-copy-id because I can't authenticate without the key from the first machine

  6. Be aware that ssh-keygen by default uses the old RSA alchorithm. It's advised to switch to the newer ED25519. You can generate a more secure keypair with this command: ssh-keygen -o -a 100 -t ed25519
    Here with -o we specify to ssh-keygen that we want the new key format.
    -a sets the number of encryption rounds to 100 to make it much harder to brute force.
    Finally with -t we set the format to ed25519.
    The default path is ~/.ssh/id_ed25519 for the key and ~/.ssh/id_ed25519.pub for the public key.

    Stay safe! 🙂

  7. Very clear video. I find that ssh key stuff sometimes is hard to understand for some. Your video does an excellent job in explaining all.

  8. You can get $25 at UpCloud to test SSH features: https://upcloud.com/signup/?promo=alu25
    0:41 Why use SSH keys
    1:23 How to create SSH keys
    2:14 What’s the difference between private and public keys
    2:45 How to add SSH keys to a remote computer
    5:18 How to disable password login and allow only the SSH key login
    6:35 How to use SSH keys for password-less login
    7:19 How to use SSH authentication agent and avoid typing you ssh key passphrase many times

LEAVE A REPLY

Please enter your comment!
Please enter your name here