Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379917
  • 博文数量: 120
  • 博客积分: 5051
  • 博客等级: 大校
  • 技术积分: 1255
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-03 01:25
文章分类

全部博文(120)

文章存档

2011年(2)

2010年(11)

2009年(28)

2008年(26)

2007年(53)

我的朋友

分类: LINUX

2007-07-03 01:40:34

Do you want to login other's host without input password?To do as following steps: (Linux to Linux)

First:
[root@host127 ~]# ssh-keygen -t rsa
this command will generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub


second:
[root@host127 ~]# scp /root/.ssh/id_rsa.pub root@192.168.10.184:/root
[root@host127 ~]# ssh 192.168.10.184
[root@abc ~]# cat /root/id_rsa.pub >> /root/.ssh/authorized_keys

ok,you will login 192.168.10.184 without input password.

If you want to login remote linux server with putty work in your local windows, you could do as: (Window to Linux)

1)First, use ssh-kengen to creat public/private rsa key pair.
2)Then, [root@localhost .ssh]# cat id_rsa.pub > authorized_keys

3)Download the private key with winSCP, and then use puttygen to convert the private key to the format which linux could accept.

4)Set putty, and load the new pricate key.

Now, you could loing remote linux server without input password.

 

阅读(1017) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:vim install and config

给主人留下些什么吧!~~