-   Linux - Newbie (
-   -   ssh: connect to host XXXX port 22: Connection timed out (

jv2112 07-04-2010 08:20 AM

ssh: connect to host XXXX port 22: Connection timed out
I have been playing with this for awhile now and I am ready to go postal.:scratch:

I just want to move some files around and potentially rsync my net book with my desktop as well as learn the software (my primary reason)

Steps Taken.
Set Static IP address to machines on LAN
Turned on Port Forwarding (22)
Added Rule to UFW allow 22/TCP

Any support in helping me avoid multiple life sentences will be appreciated. ..LOL :D

theNbomr 07-04-2010 10:26 AM

It would be helpful to know what OS's (and distros, if applicable) you are using. What is UFW? Unless you are traversing a firewall, port forwarding is not required.
The basic ingredients you will need are a ssh server and ssh client. On Linux, these are almost certainly installed by default. The ssh server may need to be started. On many systems, you can do this with a command like (as root):

/sbin/service sshd start
That should start the server. You can test this on the server host by doing

ssh somevaliduser@localhost
Then, from a client host:

ssh somevaliduser@192.168.X.X
Substitute the IP of the ssh server, as appropriate. You can also use a named IP if your client knows the name or it is in a reachable DNS server.

It may be useful to you to use X tunneling to the ssh server host, so you can easily run X applications on the ssh server host, and get the display on your ssh client/X-server host.
--- rod.

kungfur@mone 07-04-2010 11:19 AM

As theNbomr indicated, it sounds like you aren't running a SSH server on your machines (yet). Any linux client can use ssh to connect to other machines, but only if they're running a ssh server. Many (most?) distributions have sshd installed by default, but if not, it's easy to install (in Debian it's just apt-get install openssh-server).

Hope that helps!

jv2112 07-04-2010 04:42 PM

Thanks for the help. Server was not set up on the hosting machine. Awesome -> Now I have easy way to back up my net book. :)

All times are GMT -5. The time now is 07:30 AM.