brocade switch SSH配置
1、在主机上生成SSH密匙
在主机上运行命令:
ssh-keygen -t dsa
########################
[tenten@kdx ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /.ssh/id_dsa.
Your public key has been saved in /.ssh/id_dsa.pub.
The key fingerprint is:
a2:be:16:2e:66:e4:69:68:a0:eb:a7:5d:4c:8d:ea:1a:da:54:35:55:32:8e:e2 tenten@example.com
########################
2、将主机上的密匙导入到交换机上
在交换机上执行命令sshutil importpubkey
#########################
zbwljz_sw1:admin> sshutil importpubkey
Enter IP address:10.229.34.131 #主机的IP地址
Enter remote directory:/.ssh #主机上生产密匙的路径
Enter public key name(must have .pub