Hello everyone, I am having issues connect to my ssh server now.
It was working on my local network as it was connecting to the same router, but now that it's outside of my router connecting to another router, it will not work.
I have applied these changes which was working on my router.
- Private/Public Key & Remote has private key
- server has public key, named as authorized_keys_rem
- PasswordAuthentication no
- Change the port from the default
- PermitRootLogin no
- gconftool-2 --set /desktop/gnome/remote_access/local_only --type bool true
When I try to connect to the ssh server, it keeps reporting the follow:
ssh -f -p 1234 USER@188.8.131.521 -L 5900:localhost:5900 -N
OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 184.108.40.2061 [220.127.116.111] port 1234.
debug1: connect to address 18.104.22.1681 port 1234: No route to host
ssh: connect to host 22.214.171.1241 port 1234: No route to host
Tried copying a file over to the server:
scp -P 1234 text USER@126.96.36.1991:test
ssh: Could not resolve hostname 188.8.131.521: Name or service not known
I am guessing this happening, because it can't find the ssh server. I know this is the right IP of the ssh server, as I am using ifconfig. I doubt this would even do anything, but I open the port on both routers, the local's and the ssh server's router.
Please, can someone explain to me what is going wrong with this?
Local: Ubuntu 10.10 x64
ssh: Ubuntu 9.04 x86
Thanks for reading,