Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
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.
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.
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.
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>
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.