SSH 免密码登陆远程服务器

phpman.song@gmail.com发布

很多时候我们需要远程登陆服务器通过SSH

我们需要一些简单的步骤就可以实现免密码登陆

步骤

cd ~/.ssh

ssh-keygen -t rsa

ssh-copy-id user@ip

声明

user 登陆到远程服务器的用户名

ip 远程服务器IP公网地址

第一次设置需要输入密码

之后我们就可以 ssh user@ip到远程服务器了。

分类: 阿里云

65 条评论

36创业加盟网 · 2019年10月27日 下午8:56

这个会不会不安全?只是本地测试使用吗?做开发的是不是方便了。

    phpman.song@gmail.com · 2019年10月30日 上午10:56

    可以了解下ssh协议。 ssh协议传送门https://baike.baidu.com/item/ssh/10407?fr=aladdin

Justin Hamilton · 2020年3月17日 下午4:01

Long time reader, first time commenter — so, thought I’d drop a comment..

— and at the same time ask for a favor.

Your wordpress site is very simplistic – hope you don’t mind
me asking what theme you’re using? (and don’t mind if
I steal it? :P)

I just launched my small businesses site –also built
in wordpress like yours– but the theme slows (!) the
site down quite a bit.

In case you have a minute, you can find it by searching for
“royal cbd” on Google (would appreciate any feedback)

Keep up the good work– and take care of yourself during the
coronavirus scare!

~Justin

Justin · 2020年4月11日 上午8:14

Magnificent beat ! I wish to apprentice while you amend your website, how could i subscribe
for a blog web site? The account helped me a acceptable deal.
I had been tiny bit acquainted of this your broadcast provided bright clear idea

P.S. If you have a minute, would love your feedback on my new website re-design. You can find it by searching for “royal cbd” –
no sweat if you can’t.

Keep up the good work!

Alex · 2020年4月18日 下午12:16

I like it when people get together and share thoughts.
Great site, keep it up!

Royal CBD · 2020年5月8日 下午4:13

When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time
a comment is added I get several e-mails with the
same comment. Is there any way you can remove
people from that service? Cheers!

    phpman.song@gmail.com · 2020年9月9日 下午2:14

    Close the settings of comments notification. Hopes it works for you!.

发表评论

邮箱地址不会被公开。 必填项已用*标注