Successful resolution of ssh login alias

welcome to my blog

Problem Description: Use ssh input user_name @ ip every time when you log on, a lot of trouble, especially to switch back and forth between multiple machines when it is thinking with the alias Login

Solution, create config file in ~ / .ssh directory vim ~/.ssh/config, enter the following

Host remote
     HostName 10.123.321.2
     Port 22
     User Hinata

Because I've been set free before landing a close, there is not a longer specified directory id_rsa.pub, otherwise it will error: "Load key" /home/haes/.ssh/id_rsa.pub ": invalid format"

About ssh-free dense login, you can look at this article successfully resolved ssh login-free secret

Published 489 original articles · won praise 101 · Views 150,000 +

Guess you like

Origin blog.csdn.net/littlehaes/article/details/103644547
Recommended