I am trying to get my own web server started. I have installed a fresh copy of ubuntu server and openSSH.
I can SSH into the server fine by using the internal IP (192.168.1.12) but cannot access it through my external IP address. I have set up port forwarding but still get 'connection refused' from putty.
One thing I have noticed is that if I log on to my web server and type sudo /usr/sbin/sshd -d I get the following errors:
debug1: Bind to port 22 pm 0.0.0.0
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
I'm guessing this is the cause of my problems trying to ssh using my external address? I've tried to disable ipv6, but only one of the errors is fixed when I do this
EDIT:
netstat -tan | grep LIST gives the following result
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
netstat -tulpn
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 620/sshd
tcp6 0 0 :::22 :::* LISTEN 620/sshd
udp 0 0 0.0.0.0:68 0.0.0.0:* 604/dhclient3
netstat. – David Schwartz Jan 19 at 2:11ip addrYou have not specified how your "external address" is configured other than to say you setup port forwarding which could mean a number of things. – dmourati Jan 19 at 2:28