LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-04-2010, 08:20 AM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Exclamation 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.

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
 
Old 07-04-2010, 10:26 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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):
Code:
/sbin/service sshd start
That should start the server. You can test this on the server host by doing
Code:
ssh somevaliduser@localhost
Then, from a client host:
Code:
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.

Last edited by theNbomr; 07-04-2010 at 10:27 AM.
 
1 members found this post helpful.
Old 07-04-2010, 11:19 AM   #3
kungfur@mone
Member
 
Registered: Jul 2010
Location: California, USA
Distribution: Debian.
Posts: 35

Rep: Reputation: 1
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!
 
Old 07-04-2010, 04:42 PM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
Talking

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.
 
  


Reply

Tags
ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
ssh port 22: Connection timed out ( Unable to Copy file remotly ) bp_vanarse Linux - General 3 04-03-2010 07:53 PM
ssh:connect to host restart port 22: Connection refused myubuntu Linux - Software 20 02-22-2010 11:32 PM
ssh: connect to host thyme1 port 22: Connection timed out - solved abstom Linux - Server 1 09-19-2009 05:33 AM
exim connection timed out error(host lookup is done fine) rmanocha Linux - Software 2 06-20-2004 12:40 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration