在secureCRT
SSH用RSA登陆:
开启wheel组(在/etc/sudoers设置)
useradd -g wheel test
passwd test
mkdir -p /home/test/.ssh/
cd /home/test/.ssh/
用rz将公钥上传到/home/test/.ssh/目录里面
(如果创建公钥的格式是:标准公钥和VanDyke私钥格式,需要用ssh-keygen -i -f转换。如果是OpenSSH密钥格式可直接修改文件名)
ssh-keygen -i -f /home/test/.ssh/Identity.pub > /home/test/.ssh/authorized_keys
chown -R test.wheel /home/test/.ssh/
chmod 700 /home/test/.ssh/
chmod 600 /home/test/.ssh/authorized_keys
在xshell用密钥登陆:
开启wheel组(在/etc/sudoers设置)
useradd -g wheel test
passwd test
mkdir -p /home/test/.ssh/
cd /home/test/.ssh/
用rz将公钥上传到/home/test/.ssh/目录里面
mv /home/test/.ssh/id_rsa_1024.pub > /home/test/.ssh/authorized_keys
chown -R test.wheel /home/test/.ssh/
chmod 700 /home/test/.ssh/
chmod 600 /home/test/.ssh/authorized_keys