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 05-13-2005, 10:40 PM   #1
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Rep: Reputation: 15
Remote SSH


I used to be able to use remote desktop and SSH to my home computer from work but once I changed my cable modem for the wireless router version I can't do that anymore. I lost all server abilites on my computer for anything. Games included. Is there anyway I can still do this or do I need to go back to the regular cable modem?
 
Old 05-13-2005, 11:01 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
The router is probably performing NAT (network address translation) which blocks you from doing this. You'll need to use port forwarding or a DMZ to make this work.
 
Old 05-13-2005, 11:05 PM   #3
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
I checked the router settings and told it to forward port 22 to 192.168.0.12 which is what my desktop shows up as. Am I on the right track?
 
Old 05-13-2005, 11:07 PM   #4
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
most definitely
 
Old 05-13-2005, 11:12 PM   #5
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
It didn't work after that. Is there another step?
 
Old 05-13-2005, 11:13 PM   #6
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
remember to configure the ssh daemon to AllowRootLogin NO and perhaps add that only you can login( you can allow groups or users ). As an added blast of paranoia, I use non-standard ports( Normally a fixed number plus the last quadrant of an IP address as a port number ). If you have more than one network card, remember to only allow ssh on certain cards for security or else you leave the gate open. Good luck!
 
Old 05-13-2005, 11:14 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Umm, it should be working... are you trying to ssh to your external ip from within your lan?
 
Old 05-13-2005, 11:16 PM   #8
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
You must configure the ssh daemon to listen-on 192.168.0.12. Hopefully you are using staic IP's behind the router as it gets more difficuly with dhcp.
 
Old 05-13-2005, 11:17 PM   #9
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
static ip's can be configured from the router and also within the OS
 
Old 05-13-2005, 11:18 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
AllowRootLogin no is a good security tip. Since only I use my machines, I assume that passwords and so forth are strong enough, so I feel good about that. But this is all discussion for another topic.
 
Old 05-13-2005, 11:19 PM   #11
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
also when configuring ssh, remember to kill -9 `cat /var/run/sshd.pid` or wherever the process pid is located and the restart by usr/sbin/sshd
 
Old 05-13-2005, 11:20 PM   #12
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
Umm, it should be working... are you trying to ssh to your external ip from within your lan?
Yes. Its the only want I can test it right now. Will that cause it to not work?
 
Old 05-13-2005, 11:21 PM   #13
Kurzweil
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 2
Posts: 21

Original Poster
Rep: Reputation: 15
Please forgive me..

Where do I got to setup SSH?
 
Old 05-13-2005, 11:27 PM   #14
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
by ssh'ing to your ISP provided ip address, the packets should be passed to your internal box. But as well the internal box must be configured to listen.
 
Old 05-13-2005, 11:28 PM   #15
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
In OpenBSD it is /etc/ssh/sshd_config, I'm sure it something similar in fedora. Do a man sshd and it will probably tell you.
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 09:28 AM
remote ssh jonfa Linux - General 3 02-10-2005 09:35 PM
remote ssh help pasalacqua128 Linux - Software 4 05-29-2004 10:39 AM
Remote X over SSH ktambascio Linux - Software 1 05-27-2004 07:52 AM
Remote with ssh DaFrEQ Linux - General 5 12-04-2002 10:17 PM


All times are GMT -5. The time now is 09:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration