微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

cisco ISR 4431. tty 线路的传输输入 ssh

如何解决cisco ISR 4431. tty 线路的传输输入 ssh

在 Cisco 串行/控制台服务器中为 tty 线路配置“传输输入 ssh”是什么意思?

这是我在 ISR 上的配置:

# show ver
:
:
cisco ISR4431/K9 (1RU) processor with 1796073K/6147K bytes of memory.
Processor board ID FGL23173211
1 Virtual Ethernet interface
8 Gigabit Ethernet interfaces
16 terminal lines
32768K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
6598655K bytes of flash memory at bootflash:.
0K bytes of WebUI ODM Files at webui:.

Configuration register is 0x2102

vrf deFinition Mgmt-intf
 !
 address-family ipv4
 exit-address-family
 !
 address-family ipv6
 exit-address-family

ip host testserver 2026 10.1.1.1

interface Loopback0
 ip address 10.1.1.1 255.255.255.0

interface GigabitEthernet0
 vrf forwarding Mgmt-intf
 ip address 172.24.136.57 255.255.255.128
 negotiation auto
!
interface Vlan1
 no ip address

ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip http client source-interface GigabitEthernet0
ip route 172.25.228.4 255.255.255.255 172.24.136.1
ip route vrf Mgmt-intf 0.0.0.0 0.0.0.0 172.24.136.1
!
ip ssh time-out 60

menu isr title ^C
##########################################################################                                                                        #
# cisco isr for testing
##########################################################################
^C
menu isr prompt ^C
enter your menu choice
^C
menu isr text 2 console of testserver
menu isr command 2 telnet 10.1.1.1 2026
menu isr text q disconnect from terminal server
menu isr command q exit
menu isr text d disconnect line
menu isr command d disconnect
menu isr text c clear line 26
menu isr command c clear line 26
menu isr text e menu-exit
menu isr command e menu-exit
menu isr clear-screen
menu isr line-mode
!

line con 0
 transport input none
 stopbits 1
line aux 0
 stopbits 1
line 0/2/0 0/2/15
 transport input ssh
 transport output all
line vty 0
 exec-timeout 30 0
 login local
 autocommand  menu isr
 transport input ssh
 transport output telnet

使用“transport input all”,我可以发出“connect testserver”,并且我能够通过从 ISR 的第 26 行连接到服务器上的控制台端口的控制台端口访问硬件。使用“传输输入 ssh”,“连接测试服务器”显示“连接被拒绝”。这是否意味着 ISR 正在尝试打开到我测试服务器上某个端口的 TCP 连接?

感谢任何帮助。没有找到太多相关文档。

解决方法

https://www.youtube.com/watch?v=IcCQRrUXdiE
https://www.youtube.com/watch?v=TDZLoLKtUro
https://etherealmind.com/cisco-ios-reverse-ssh-terminal-server-console-access/

这 3 个视频解释了如何让“传输输入 ssh”工作。配置完成后,您可以通过 ssh 连接到控制台服务器的特定端口,这将带您进入连接到串行集中器的服务器的控制台。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?