大网数据广告活动
服务器运维问答

SSH Error from Nexus 5K to Linux

· 52CE 我爱测

I built a CLI shortcut to ssh the config over to an Ubuntu box (with an SMB share mounted to the user home directory). cli alias name archive copy startup-config scp://[email omitted]//home/sw-backup/Cisco/Switch/Nexus/NexusB vrf…

问题原文

原帖链接 · David Sain · CC BY-SA 3.0

I built a CLI shortcut to ssh the config over to an Ubuntu box (with an SMB share mounted to the user home directory).

cli alias name archive copy startup-config scp://[email omitted]//home/sw-backup/Cisco/Switch/Nexus/NexusB vrf default

This is so I can easily push my config out to a Windows file server via the "SSH gateway" box. I tried some freebie and Trial SSH Server software on Windows and had too many reliability issues. That was resolved with the Linux box in the middle. It's been stable for quite some time.

I copy files over to this server from all of our routers, switches and Call Manager backups.

I recently updated Nexus to version 7.1(4)N1(1). Now when I attempt to copy I receive an error:

nnn-nexus-b# archive
No matching ciphers found. Client (10.130.9.35) supported ciphers :
aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc,[email omitted].
se .Server supported ciphers : [email omitted],aes128
-ctr,aes192-ctr,aes256-ctr,[email omitted],aes256-gcm@openss
h.com

lost connection

nnn-nexus-b# 

I found the following that looks promising:

http://www.cisco.com/c/en/us/support/docs/switches/nexus-9000-series-switches/200663-Unable-to-SSH-into-Nexus-9K-fatal.html

The above link references the SSH Server on the Nexus. I'm reaching out to an Ubuntu 16.04.1 LTS machine. I can't enable the bash shell feature on the 5548UP. I'm guessing I can disable the weak ciphers on Ubuntu.

Here lies the problem. Call Manager backups, IOS and IOS-XE devices are still using the weak cipher if I understand what's going on correctly. If I change the Ubuntu box, I'll break all of these.

What are some thoughts on how to work around this?

Thanks, B-Dog

已采纳解答

原帖链接 · DerfK · CC BY-SA 3.0

In your /etc/ssh/sshd_config file, find the line Ciphers and add one of the ciphers your Nexus supports (say, aes256-cbc) to it, keeping the ciphers you already have enabled for your other devices. If the line is not there, add it with the list the server is advertising in your error message and add that cipher to the end eg:

Ciphers [email omitted],aes128-ctr,aes192-ctr,aes256-ctr,[email omitted],[email omitted],aes256-cbc

man sshd_config should list the ciphers your version of openssh supports in the Ciphers section.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。