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 ...
- 01-18-2008 #1Just 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
- 01-18-2008 #2
have you installed the openssh server yet?
- 01-18-2008 #3Just 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
- 01-18-2008 #4Just 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
- 01-18-2008 #5
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
if something gets printed then its running, else it isn'tCode:ps -A | grep sshd
- 01-18-2008 #6Just 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
- 01-18-2008 #7
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.)
- 01-18-2008 #8Just 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
- 01-18-2008 #9Just Joined!
- Join Date
- Jan 2008
- Posts
- 9
do i need to setup a gateway ?
- 01-18-2008 #10
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.


Reply With Quote