LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-15-2009, 03:00 AM   #1
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Rep: Reputation: 15
Question related to SSH


hi,
I am running fedora and i have enabled root user to log in via SSH.(home pc). I have my broadband ISP proving a dynamic IP. My question is, using this ISP-provided IP, is it possible for me to log in to my computer from a remote computer (say, an internet cafe or a different place running windows with putty). I tried this but I am unsuccesful. What should i do to make it work?

Last edited by Tinkster; 08-16-2009 at 08:08 PM. Reason: doubt!=question
 
Old 08-15-2009, 03:41 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
It is possible, but we need to know more about your network... are you using a any kind of router/firewall? Or is your linux machine connected directly to the internet?
 
Old 08-15-2009, 03:48 AM   #3
jdkaye
Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,008

Rep: Reputation: Disabled
You might want to check out this thread:
http://www.linuxquestions.org/questi...light=ddclient
cheers,
jdk
 
Old 08-15-2009, 07:56 AM   #4
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
Yes you cam make it. You have made your IP define as public then you can acess it from other places
 
Old 08-15-2009, 09:57 AM   #5
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Original Poster
Rep: Reputation: 15
Admiral Beotch,
This is my home PC and it is connected directly to the internet via a Broadband modem. Once I connect to my isp and type ifconfig, it shows the ip assigned to me by the ISP. So, I think there is no firewall sort of things.

jdkaye,
this is for purely educational purpose for my students to know about it. So, is there a simple way out for this question...please if you dont mind.

vap,
how to define my ip as public. pls let me know.
 
Old 08-15-2009, 10:00 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
just do
Code:
ssh "ip assigned by the ISP"
 
Old 08-15-2009, 10:48 AM   #7
jdkaye
Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,008

Rep: Reputation: Disabled
repo's solution works as long as you know what the current ip assigned by the ISP. I used my solution because my ISP, Alice Telecom Italia will change my router's ip at frequent and unpredictible times. So I had the case where I wanted to logon to my home machine but didn't know what the router's ip was.

If this is not your case then I don't see what the problem is. If this is your case, then if I knew a simpler solution, I would have used it.
jdk
 
Old 08-15-2009, 12:29 PM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
@rajeshkerala, it would help if you posted the output of:

Code:
$ /sbin/ifconfig
and

Code:
$ lynx http://www.whatismyip.com/automation/n09230945.asp
(copy / paste that second one)

We need to be sure about whether you're on private IP space or not.
 
Old 08-16-2009, 09:48 AM   #9
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Original Poster
Rep: Reputation: 15
Code:
[root@linux1 ~]# ifconfig | more
eth0      Link encap:Ethernet  HWaddr 00:80:48:54:4A:8D  
          inet6 addr: fe80::280:48ff:fe54:4a8d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2803 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2724 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2173456 (2.0 MiB)  TX bytes:686910 (670.8 KiB)
          Interrupt:11 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:80:48:59:9A:BC  
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2018 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2018 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3111132 (2.9 MiB)  TX bytes:3111132 (2.9 MiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:117.193.8.243  P-t-P:117.193.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
          RX packets:2715 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2621 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:2108334 (2.0 MiB)  TX bytes:619528 (605.0 KiB)
 
Old 08-16-2009, 09:53 AM   #10
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Original Poster
Rep: Reputation: 15
anomie,
Eth0 is connected to the internet, that is why it is not showing ip address, and ppp0 is being assigned ip by ISP (BSNL, India) 117.193.8.243. From what repo said, if I type just ssh 117.193.8.243 from a remote system, I should be able to log in to this pc...maybe I have done something wrong when I accessed from the remote system,I will try again later.

whatismy ip site returned the same value, 117.193.8.243. Thanks

repo, thanks I will try it again.

jdkaye thanks for your help.
 
Old 08-16-2009, 07:58 PM   #11
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
For safety, please don't allow the root user in. Have another user and 'su -' or sudo if you need root access after logging in.
There are huge nums of automated scripts running on the net trying to get in via root.
 
Old 08-17-2009, 10:46 PM   #12
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Original Poster
Rep: Reputation: 15
chrism01,
Thanks, but I am using the system for educational use only, so nothing important in my system. Also, friends, please let me know what one of my friends told is correct or not...

.. It is not possible to log in to your ISP-assigned IP from a remote machine because of a concept called NAT in which your broadband router/modem will assign a local address to your ethernet card eventhough your ISP provides you with a dynamic IP,( but it seems this could be overrided by a software called teamviewer in windows). please throw some light on this...!!

Last edited by rajeshkerala; 08-17-2009 at 11:12 PM.
 
Old 08-17-2009, 11:47 PM   #13
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
It doesn't matter what you've got on your system, if it gets compromised, it can be used to attack other people's systems.
Google the word 'botnet'.

Anyway, the usual arrangement is

<your_box>Private IP 192.168.1.1 ------- 196.168.1.2<your modem/router using NAT>IP_assigned_by_ISP -----another_ip<ISP>another_ip----<the internet>

In other words each box involved has an IP address at each entry/exit port.
Google dyndns.org

HTH
 
  


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
An SSH - related Question.... rajeshkerala Linux - Newbie 3 12-21-2008 12:42 AM
TCP Related question pwnthis Linux - Networking 0 12-05-2008 09:02 AM
Just a quick SSH related question... Geneset Linux - Networking 4 02-04-2008 12:07 PM
KDE-related question. kamransoomro84 Linux - Desktop 2 09-01-2006 01:00 PM
c related question. blackzone Programming 1 07-24-2004 09:55 AM


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