-1

This is my first time trying to make an SSH tunnel. The purpose is to make an offsite backup our server (server A) in the office which is about 1 mile away.

I have set up all ports on the office server- A, the office office server can easily be SSH'ed to from the other desktop computers in the network so all ports are open, I can also use putty in the office on a windows 10- Home computer and gain access to the server (Server A) as well. UFW rules show port 22 open, and listening.

My offsite server (server B) also has a confirmed open port 22. If i try to access (server A) via putty or directly from the "server B," I get the error below. Ping to "server A" from "Server B" also does not work;

This is happens when I try to send the RSA key from Server B to Server A also;

root@119w:/home/tyran# ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host 192.168.1.119 port 22: Connection timed out

I am sure is some type of user error. But I am unsure what to do. I have opened ports or routers, contacted providers, check ufw, confirmed listen, checked ports with outside software which verify they are open yet I cannot connect.

6
  • 2
    Are the office server and offsite server actually on the same 192.168.1.x LAN? typically in the case of non collocated servers you would need to use the remote site's WAN address, and set up port forwarding from the router to your device on the remote LAN. Commented Jun 9 at 17:53
  • Office is 192.168.1.x Home is 192.168.0.x so these need to be the same? Commented Jun 9 at 19:47
  • It sounds like they are two separate private networks that you wish to connect between using the public internet - unless you already have some kind of VLAN set up between the locations? Commented Jun 9 at 20:27
  • Yes i wish to back up 192.168.1.x to 192.168.0.x via ssh port 22. I have nothing else set up - If change the IP to match will that resolve the issue? Commented Jun 9 at 22:20
  • Most likely your Server A is behind a router which performs Network address translation - you will need to SSH to a port on the router's public IP and have the router forward that to the private address:port 192.168.1.119:22 on the remote LAN. This is really nothing to do with Ubuntu, just basic network configuration - see for example r/HomeNetworking : A guide to port forwarding. Commented Jun 9 at 22:58

0

You must log in to answer this question.

Browse other questions tagged .