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-15-2006, 06:37 AM   #1
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Rep: Reputation: 15
login via internet


Hello i have heard that its possible to access a linux pc's CLI from the Internet. If so how do i go about setting this up ? do i need a server of any kind or can i just use my regular PC. I have ssh set up for my network is it similar to this or do i have to use a diffrent application ? Also how secure will it be will it be easy for someone to take complete control of my PC ?
Thanks for any help in advance
 
Old 05-15-2006, 06:48 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi manicman,

You said you have already setup SSH for your LAN. It is the same thing for the whole internet. About security:- It sends encrypted data and receives to.
Another questions:-
How easy is it to take complete control:-

If anyone is able to know the username who has ssh access he would be able to break in using password attack. (If you have set up root can access the m/c via ssh you are at risk.)

Tradition:-

1) SSH server with no root access.
2) Only some accounts are given ssh access.
3) Those accounts are not dictionary based names / not typical as mrkt, sales, info, and so on
4) Again those accounts have strong passwords
5) They should use "su" to perform root tasks.
 
Old 05-15-2006, 07:05 AM   #3
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks imagineers7 you have cleared quite a few things up. one last question how do you identify your computer from everyone else using ssh on the Internet. on my LAN you just use your IP so to log in it would be
Code:
ssh manicman@192.168.2.2
is there something similar for Internet usage and if so do i have to specify what it is or is it automatically set for me ?
 
Old 05-15-2006, 08:12 AM   #4
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
You can setup port forwarding on your firewall to forward all ssh requests internal ip of your computer.

You would then,

ssh manicman@<your firewalls ip addr>
 
Old 05-16-2006, 01:37 AM   #5
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi Manicman,

You can forward ports from your linux machine's firewall as follows:-

/usr/sbin/ipmasqadm portfw -a -P tcp -L <SOURCE_IP_ADD> <SOURCE_PORT> -R <DEST_IP_ADD <DEST_PORT>

also have a look at

http://www.linux.com/howtos/IP-Masqu...rwarders.shtml

Which will give you an idea about port forwarding
 
  


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 login to internet from LAN !!! tuxuser19 Debian 8 11-24-2005 07:19 PM
No Internet Connection At Login Ken1015 Linux - Newbie 2 03-24-2005 04:34 PM
when I login I lose the internet comprookie2000 Slackware 7 07-15-2004 06:03 PM
I cant login into the Internet ! Y2J Linux - Networking 2 11-03-2003 06:07 PM
disable login over internet keevitaja Linux - Newbie 5 08-20-2002 06:43 PM


All times are GMT -5. The time now is 08:50 AM.

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