Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi, I installed CentOS and now would like to complete my installation from another computer with SSH. I am behind my router and get a DHCP address. I have no ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9

    Access my server from inside my network

    Hi,

    I installed CentOS and now would like to complete my installation from another computer with SSH. I am behind my router and get a DHCP address. I have no firewall running on my linux server.

    ifconfig -a gives me my an internal ipaddress 192.168.0.197 which i can't ping neither ssh from my other computer.

    What is the procedure.

    Thanks in advance

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    have you installed the openssh server yet?

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9
    i see... is that something i need to download and compile etc... or i just need to start ?

    Thanks

  4. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9
    localy on my server i can use ssh, ssh user@127.0.0.1 works fine iassume ssh server is started

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you should be able to install it with your package manager, but if you can ssh to yourself from your server i would imagine it is running. type
    Code:
    ps -A | grep sshd
    if something gets printed then its running, else it isn't

  6. #6
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9
    it is running. I think my problem is more a network misunderstanding than SSH. When typing ifconfig -a, i get my internal ipaddress 192.168.0.198. On my router, i see my server connected as well as my other computers

    192.168.0.197 Desktop
    192.168.0.198 Linux
    192.168.0.199 Laptop

    But when doing ipconfig on my laptop (192.168.0.199), i get another ip address which i can use from inside my network 192.168.2.11 and i can connect using FTP HTTP etc. I would expect to get an IP address from my linux server

  7. #7
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I believe openssh-server / -clients is part of the CentOS base installation.

    Are you sure no firewall is running? Check what this command shows you:
    # iptables -nvL

    If that shows ACCEPT policies and no other rules, then confirm your other boxes are on the same subnet. (Post IP address / subnet mask for each if you are not sure.)

  8. #8
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9
    iptables shows ACCEPT for tcp dpt:22

    ok, tell me if that is the information required

    from windows laptop

    IP Address: 192.168.2.11
    Subnet Mask: 255.255.255.0
    Default Gateway 192.168.2.1

    From my linux server

    inet addr:192.168.0.197 Bcast:192.168.2.255 Mask:255.255.255.0
    will omit the rest... IPV6 etc...

    from my router

    192.168.0.197 Desktop
    192.168.0.198 Linux
    192.168.0.199 Laptop

    It seems like ifconfig displays my dhcp address but can't reach it. Why does my laptop shows 192.168.2.11 which is the address i use to reach it from inside and not the dhcp

    Thanks

  9. #9
    Just Joined!
    Join Date
    Jan 2008
    Posts
    9
    do i need to setup a gateway ?

  10. #10
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Are the Linux box and the Windows laptop both dhcp clients? If so, something is screwy with the way your dhcp server is giving out addresses. (Or, more likely, you set one of those as a static IP address.)

    192.168.2.11/255.255.255.0
    192.168.0.197/255.255.255.0

    As you can see, those are different subnets.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...