SSH Passwordless Key to Auto Login - Linux CLI

preview_player
Показать описание

how to use ssh?

NAME
ssh - OpenSSH SSH client (remote login program)

DESCRIPTION
ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace
rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbi‐
trary TCP ports can also be forwarded over the secure channel.
Рекомендации по теме
Комментарии
Автор

You can also automate SSH login if you don't wish to type all that all the time. You do this by creating _~/.ssh/config file._ In there you configure each connection and key file.

Example:

Host connection-name
        HostName ip-or-domain.net
        User root
        IdentityFile ~/.ssh/id_rsa

Then you connect just by typing: _ssh connection-name_

MladenMijatov
Автор

That was a great video. Clear, well explained and to the point. Thanks for sharing!

snamone
Автор

I need to step my game up... As always great video gotbletu 

rwoodfolk
Автор

Doing this on my Mac and trying to ssh into my raspberry pi and it's not working. I did all the instructions and it's still asking me for the password every time. Can someone help me out? I did get the confirmation that 1 key is added and I can see the "authorized_keys" file on my raspberry pi.

FictionsAndIllusions
Автор

thanks man, i need some more help.
i need to login into multiple servers.but don't want to copy file id_rac.pub to all servers. As copying of this file to each servers will ask password..again and again, I need to type only one time, the credentials, andIi can login to multiple server and do some work and logout from servers, can this be possible ?

GAURAVKUMAR-qfxt