LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-03-2005, 04:45 PM   #1
danimal87
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
ssh from outside my lan?


ok, so I just installed ssh on my ubuntu box and I can ssh into it from windows boxes on the same router but how do I set it up so that I can get to it from a different network? A wifi hotspot for instance or a friends house.
 
Old 09-03-2005, 05:28 PM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
You'll need to have your router forward incoming port 22 traffic to your Ubuntu box.
 
Old 09-03-2005, 06:39 PM   #3
danimal87
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
thanks, now what are the security implications of this? Am I prety much opening myself up to get owned, and if so what should I do to batten down the hatches.
 
Old 09-03-2005, 07:09 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Hope this gets you started, there are many different ways of making it more secure.
http://www.openssh.com/faq.html
One way is to limit access, for gentoo I do this;
Limit SSHD Access

Deny access to everyone, including root, except user1 and user2.

Edit /etc/ssh/sshd_config:
File: /etc/ssh/sshd_config

AllowUsers user1 user2
PermitRootLogin no

Last edited by comprookie2000; 09-03-2005 at 07:16 PM.
 
Old 09-04-2005, 10:35 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
adding to comprookie2000 answer's I would disable password authentication and use something like pubkey...
with that, you have control to users and parallel to that with the encryption key..
just my
regards,
slackie1000
 
  


Reply



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 WAN/LAN problem Hangdog42 Linux - Security 6 10-18-2005 09:51 PM
problems about ssh and LAN franz77 Linux - Networking 3 01-09-2005 03:41 AM
SSH from outside LAN - Fedora Core 2 Robstro Linux - Networking 1 06-24-2004 03:08 PM
SSH access from outside the LAN? jdp Linux - Newbie 1 05-02-2004 01:12 PM
Problems with SSH/FTP on LAN w0rmh0l3 Linux - Networking 10 03-08-2002 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 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