For some reason I cannot ssh into my server at home but the /var/www .html file is visible from the web. Im wondering what is going on and if maybe some web server task shut down SSH or a daemon. Im not very handy with linux anymore so here I am asking you guys for a suggestion. Have any?![]()
-
Are you sure it's not at the router level? is the ssh port open and being forwarded to your server?
-
-
Basically Im wondering is the installation of webserver tools and files may have messed with my ssh settings. I can ping the address and hostname thats in my ddclient, but cannot resolve a connection. Its weird to say the least.
-
From a mac or linux computer try ssh -vvv hostname and then see where its dying. And It does sound like port 22 is not open somewhere down the line.
-
-
wait... why are you not using port 22 for ssh?
-
Ran the command and this is what I get:
OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve ... -
edit: old habits die hard... -
Well, the error is telling me the computer cannot resolve the domain name.
And what tutorial tells you to use port 2222? Because I have NEVER heard of that in a tutorial. -
Thats the one I use. The funny thing is Dyndns sees the right IP, and I can access /var/www/index.html from anywhere using a browser with my host name. Which is why I was thinking the webserver is causing an issue. -
Im using that port for my work SSH server and its been stable for a looong time.
-
ALLurGroceries Vegan Vermin Super Moderator
What's the command line? If you're using a non-standard port you need the -p option:
Code:ssh [email protected] -p 2222
-
Code:ssh -vvv [email protected] -p 2222
Code:OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to XXX.XXX.com [XXX.XXX.XXX.XXX] port 2222. debug1: connect to address XXX.XXX.XXX.XXX port 2222: Connection timed out ssh: connect to host XXX.XXX.com port 2222: Connection timed out
-
ALLurGroceries Vegan Vermin Super Moderator
It seems like either your port is not forwarded, or the server isn't listening on 2222. There's not much that I can do to diagnose that on a forum..
-
Yeah thanks for your help. Im going to start from scratch and make my ssh server run on a VM on my SXPS so I can have it directly access my eSata drive. Going to be much much faster anyways for off site storage.
-
ALLurGroceries Vegan Vermin Super Moderator
You could just dpkg-reconfigure openssh-server and see if that works. Or reinstall and reconfigure the package after purging your web server stuff (if you don't need it). There's no reason you'd have to do a full reinstall for that really.
Also, you could try your ssh server on the LAN to see if it's really running, and then nmap your public IP and see if the port is open... besides that it's either configuration of openssh or your firewall. -
As for the old sever I did run nmap, even went to canyouseeme.org to check the port. I was always able to ssh locally, just couldn't remotely access through ssh. Either way the server is now down due to the VM pulling its duties. I have toyed with it being my web server, but I dont think I want to mess with my current setup as its working flawlessly. Maybe Ill take a snap shot of my server now and try lamp on it and worst case Ill just go back to the old VM file. But for now its time to setup VNC for a remote windows gui and off site storage setup. Going to be interesting mounting a windows share from a VM. -
That sounds like a firewall / iptables issue to me.
SSH issues...
Discussion in 'Linux Compatibility and Software' started by Thaenatos, Feb 4, 2011.