LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2006, 08:12 PM   #1
Krelian
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva
Posts: 16

Rep: Reputation: 0
How to set it up so I can ssh to home computer?


Hi,

I was wondering if someone could walk me through to steps to allow me to ssh to my computer at home, from some other computer running Linux. I know that it has something to do with sshd, but I was unable to find my answer using a Google search.

Thanks.
 
Old 08-01-2006, 08:41 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Basically, you need to install a SSH server on your machine. OpenSSH should be available through your distros package manager. When you install it, test it using "ssh localhost". Make sure that you allow connections on Port 22 through your machines firewall.

Next, assuming you are behind a ADSL type router, you will need to set up a Virtual Server (on your router) to forward connections on port 22 to your desktop. It will help if you set a static IP for your desktop machine.

Then, you should be able to connect to your machine from outside using: ssh user@your.public.IP.address. You can find your public IP address at http://whatismyipaddress.com/.

I have some more info about SSH Here.

I hope this helps
--Ian
 
Old 08-01-2006, 08:46 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,898

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
not enough information.

1. is the software firewall running in linux (normally iptables)
2. what kind of connection do you have
3. are you on static or dynaic ip
4. are you behind a router (Linksys, d-link etc.)

you need port 22 open and possibly forwareded to the computer at the house. you need to know the IP from your ISP and you have to have sshd enabled. plus so much more, but if you understand basic networking and how the internet works its very simple.
 
Old 08-01-2006, 08:47 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Two links below that I have not read and therefore cannot say if they are any good but I found several at www.google.com/linux using 'ssh tutorial' as my search criteria.


http://www.linux.ie/articles/tutorials/ssh.php

http://www.vanemery.com/Linux/XoverSSH/X-over-SSH2.html
 
Old 08-01-2006, 09:23 PM   #5
Krelian
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva
Posts: 16

Original Poster
Rep: Reputation: 0
OK, I installed OpenSSH, but not sure what to do regarding port 22. Answers to lleb's questions:

1. No software firewall
2. Connection is by cable modem
3. Static IP
4. No router.

See the following:

/home/brett>ssh localhost
ssh: localhost: Name or service not known
/home/brett>ssh <my ip>
ssh: connect to host <my ip> port 22: Connection refused
/home/brett>

Thanks again for your help everyone.
 
Old 08-02-2006, 10:01 AM   #6
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
try this command:

ps aux | grep sshd

See if your daemon is running...
 
Old 08-04-2006, 03:14 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,898

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Quote:
Originally Posted by Krelian
OK, I installed OpenSSH, but not sure what to do regarding port 22. Answers to lleb's questions:

1. No software firewall
2. Connection is by cable modem
3. Static IP
4. No router.

See the following:

/home/brett>ssh localhost
ssh: localhost: Name or service not known
/home/brett>ssh <my ip>
ssh: connect to host <my ip> port 22: Connection refused

/home/brett>

Thanks again for your help everyone.
that tells you that either sshd is not running, or it is set to run on a port other then default. the default port for ssh is 22. i for one do not have that port open on my firewall, but do use ssh as i forward a different port to the internal port 22 on one of my computers.
 
  


Reply


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 into my home ubuntu computer taiwf Linux - Networking 2 01-16-2006 06:31 PM
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM
trying to ssh to my home computer bwoodwar Linux - Newbie 2 09-15-2005 10:20 AM
home computer assembly blotch Linux - Hardware 3 04-02-2003 10:29 PM
Using home computer for email? JMC Linux - General 5 08-01-2002 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration