博科300 光纤交换机如何设置为SSH登录?

博科300 光纤交换机如何设置为SSH登录关闭telnet登录,求详细步骤

参与7

1同行回答

匿名用户匿名用户
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): Ente...显示全部

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 suffix):id_dsa.pub #密匙的名称。
Enter login name:root #主机的用户名
Password: #主机的密码
public key is imported successfully.
#####################################
3、在交换机上生产SSH密匙
在交换机上执行命令:sshutil genkey
####################################
zbwljz_sw1:admin> sshutil genkey
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Key pair generated successfully.
#####################################
4、在交换机上将交换机的SSH密匙导出到主机上
在交换机上执行:sshutil exportpubkey
######################################
zbwljz_sw1:admin> sshutil exportpubkey
Enter IP address:10.229.34.131 #主机的IP地址
Enter remote directory:/.ssh #主机上保存密匙的路径
Enter login name:root #主机的用户名
Password: #主机的密码
public key out_going.pub is exported successfully.
5、测试是否成功
在主机上执行 ssh -l admin 10.229.34.111 switchshow #如果不需要密码,证明SSH密匙通讯成功。10.229.34.111为交换机IP地址。

收起
银行 · 2019-08-02
浏览4549

提问者

zhanglj
系统工程师北京银信科技
擅长领域: 服务器小型机Power服务器

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2019-08-01
  • 关注会员:2 人
  • 问题浏览:5019
  • 最近回答:2019-08-02
  • X社区推广