|
我想使用Fedora上的cags用户,访问AS4上的release用户,访问过程中不输入密码。
所以我按照以下方式建立了ssh通道:
[cags@localhost ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/cags/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/cags/.ssh/id_rsa.
Your public key has been saved in /home/cags/.ssh/id_rsa.pub.
The key fingerprint is:
97:1f:52:03:73:e8:a2:8a:62:76:2e:95:6a:d5:98:ab cags@localhost.localdomain
[cags@localhost ~]$ scp .ssh/id_rsa.pub release@192.168.1.10/authorized_keys
release@192.168.1.10's password:
id_rsa.pub 100% 408 0.4KB/s 00:00
[cags@localhost ~]$ ssh release@192.168.1.10
release@192.168.1.10's password:
Last login: Fri Feb 15 10:25:56 2008 from 192.168.1.12
[release@OmniQuest ~]$ chmod 755 ~/.ssh
[release@OmniQuest ~]$ exit
logout
Connection to 192.168.1.10 closed.
通道建立后,使用ssh访问仍然需要密码:
[cags@localhost ~]$ ssh release@192.168.1.10
release@192.168.1.10's password:
奇怪的是我在两个AS4上按照上面的方法是可行的,换成Fedora core 6和AS4就不行了。
希望大家帮帮忙!!感谢!! |
|