0

Suppose that a Linux server A is in a local network with IP 192.168.0.90, and I have another Linux server B outside this local network, with IP 203.107.90.80. I want to get access to server A via ssh on server B. How can I do that?

I have tried reverse ssh tunneling following the instructions from this page http://www.howtoforge.com/reverse-ssh-tunneling, but when I tried to ssh to A on B it told me that the connection is closed by the remote host. I check the ssh_config and the ssh port is 22.

2
  • Is that a typo 192.186... did you mean 192.168 ? Commented Mar 9, 2016 at 9:57
  • @lain Ah...I am sorry for that... Commented Mar 9, 2016 at 13:53

2 Answers 2

0

As long as there is an unblocked route between the two networks, and an ssh server is running on the target system, you should be able to connect. Make sure sshd is running on the server to which you are attempting to connect.

1
  • You are right! I don't know that I have to install openssh-server LOL Commented Mar 9, 2016 at 13:55
0

An unblocked route between the two networks is achieved by setting up a static route on the router to which Server B is connected specifying how to access the subnet to which Server A is connected

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.