Cannot ssh to Ubuntu box from Windows laptop.
I've just set up OpenSSH on my Ubuntu 8.04 box. Observe no firewall in system services list on ubuntu box. Attempt to ssh using putty from windows laptop attached to same router.
Putty connection times out. Can ping ubuntu box from laptop. What might I be doing wrong? Thanks, Owen. |
Are you connecting to the right address?
Is SSHd running on the server? |
Hello and Welcome to LinuxQuestions,
Did you install the SSH server on your Ubuntu box? Check with this: Code:
which sshd Code:
ps -ef | grep sshd Code:
netstat -aln | grep ":22" Eric |
Make sure SSH is running on Ubuntu:
Code:
ps -ae | grep sshd Code:
720 ? 00:00:00 sshd |
Please make sure that you have installed openssh-server package in Ubuntu and check whether SSH is running with "ps -ef | grep ssh".
|
Apparently, every thing's fine on Ubuntu box:
Code:
owen@stage-hub:~$ which sshd Could this be a firewall problem on my Windows laptop? Could it be a problem with my router? Thanks, Owen. |
Hi,
Can you post your IP configuration of both your Windows and Ubuntu box? Do you have SELinux enabled on Ubuntu? Check with: Code:
sestatus Kind regards, Eric |
Can't ping the Windows machine... this disturbs me/ The Windows firewalls have honestly caused me a lot of head aches - that's not just a Linux fan boy talking. Might be worth seeing if you can disable this for testing temporarily if it's a safe environment.
Personally I'd want to be able to ping the IP addresses of both devices (and the IP of the router). Might be worth checking the arp table if you are seeing any oddities. Will kinda look like this in a Linux: Code:
XXXX$ arp -a Code:
C:\Users\XXXX>arp -a |
Can ping router from Ubuntu.
Hence, believing problem is with Windows laptop, I opened a command line session on my Windows laptop and did what CmdoColin suggested: Code:
C:\Documents and Settings\Owen Thomas>arp -a Believe therefore that remedy lies with Windows config. Although this is a linux discussion group, I would appreciate a fix to this problem. Thanks, Owen. |
Windows XP SP3 I believe.
|
You were able to ping the Ubuntu machine from your XP machine previously. Try this again, and then check your arp tables again on both machines. If not used / machine is rebooted, they can not be there.
If the mac address again isn't appearing in the arp table then generically check your hardware. Otherwise I'd disable an re-enable the Ethernet port hardware in windows and check the drivers. Otherwise check the device they connected together with. If it's your internet router; it might be worth checking there is no firewall rules between ports. |
It might be a trivial note, but the Windows to router is Wireless, Ubuntu to router is Ethernet.
Ubuntu and Windows have been rebooted. Pinged Ubunto and Windows from each to the other as suggested, and retried arp. Running arp reports address of Ubuntu from Windows and vice versa. Router reports firewall is disabled. This, to me, is still suggestive of a Windows firewall problem. Hmmm... I disable Windows firewall, and still cannot reach ssh. Very ponderous. I might require some on-site help. Owen. |
Quote:
Please run these commands, and post the output. Code:
ip route Thanks, SuperJediWombat |
Doesn't most OpenSSH packages ship with all the "listening" options disabled by default in the config?
I know for sure that gentoo ships with the #port 22 #192.168.0.0/24 both commented out for security reasons (Only enable exactly what you need). This means anyone who might of accidently installed openSSH in the past and then had it turned on randomly. I notice no one else appears to have checked this yet - I'm not sure where the config file is on this distrobution, but I'd reccomend checking the listening options. |
Ubuntu should be listening on 0.0.0.0:22 and :::22 by default.
Run this and post the output please: Code:
grep -v '^#\|^$' /etc/ssh/sshd_config |
All times are GMT -5. The time now is 08:16 PM. |