LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login via internet (https://www.linuxquestions.org/questions/linux-newbie-8/login-via-internet-444936/)

manicman 05-15-2006 05:37 AM

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

imagineers7 05-15-2006 05:48 AM

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.

manicman 05-15-2006 06:05 AM

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 ?

okmyx 05-15-2006 07:12 AM

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>

imagineers7 05-16-2006 12:37 AM

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


All times are GMT -5. The time now is 06:39 AM.