开发者

Tunneling to an internal corporate SSH server behind a gateway

I am trying to do the following. I have an internal ssh server at work (e.g. internal@192.168.1.13). This server 开发者_JS百科is behind a gateway (external@gateway.work.com).

I would like to ssh to internal@internal-ssh.work.com from my home machine. To do so, I have been first doing ssh to log into the external gateway, and then from there I will log into the internal machine. the account names on the two systems are different.

I was wondering if this can be done in one step through some type of SSH tunneling. I have tried a few approaches that adapt what I see in different places, but keep getting error messages.


You can use

ssh -t external@gateway.work.com ssh internal@192.168.1.13

and you will need to either have public key crypto set up, or enter your external password, then your internal password.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜