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

ssh tunnel in putty for an ssh connection

· 52CE 我爱测

I have configured a putty session to login into a server (server A) and make an ssh connection to another server (server B) automatically by adding a remote command in putty (ssh server B) for the putty session to login into serv…

问题原文

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

I have configured a putty session to login into a server (server A) and make an ssh connection to another server (server B) automatically by adding a remote command in putty (ssh server B) for the putty session to login into server A. This works fine. now I want to access a service running on port 8443 from the browser on my local host. I have tried to create a ssh tunnel in putty using source port as 8443 ad destination as 8443:localhost:8443 but it doesn't work. Please help!!

已采纳解答

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

On ServerA you have to create a tunnel to ServerB, or it will not work. The remote command on ServerA must be something like this:

ssh -L:8443:ServerB:8443

Later you create the tunnel on PuTTY, using 8443 as the source, and localhost:8443 as the destination.

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

资料来源与适用范围

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

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

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