Unable to do SSH from Xen host to guest in opensuse 12.2

Hi Guys,

         Need help, I am running OpenSuse 12.2 as Xen host and installed opensuse as virtual machine. ssh works fine from host to host and guest to host but not from host to guest. I also have windows PC and i am able to do SSH from windows to  xen host but not from windows to guest. I checked sshd is running on both the machines.  Anyhelp would be greatly appreciated ..Thanks in Advance

This what happens

root@192.168.2.2:/etc/ssh $ ssh -v 192.168.2.4
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 192.168.2.4 [192.168.2.4] port 22.
^C
root@192.168.2.2:/etc/ssh $

On 10/13/2012 04:26 AM, shanthaprasad wrote:
>
> Hi Guys,
>
> Need help, I am running OpenSuse 12.2 as Xen host and
> installed opensuse as virtual machine. ssh works fine from host to host
> and guest to host but not from host to guest. I also have windows PC and
> i am able to do SSH from windows to xen host but not from windows to
> guest. I checked sshd is running on both the machines. Anyhelp would be
> greatly appreciated …Thanks in Advance
>
> This what happens
>
> root@192.168.2.2:/etc/ssh $ ssh -v 192.168.2.4
>
> OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
>
> debug1: Reading configuration data /etc/ssh/ssh_config
>
> debug1: /etc/ssh/ssh_config line 20: Applying options for *
>
> debug1: Connecting to 192.168.2.4 [192.168.2.4] port 22.
>
> ^C
>
> root@192.168.2.2:/etc/ssh $

Walk before you run. Can you ping the guest? If not, fix that routing. If you
can, does the firewall allow ssh? Is sshd running in the guest?

Sorry for the delay in reply.
Yes, I can ping the guest, sshd is running on both host and guest machines. i am able to ssh from guest to host machine but not from host to guest or from outside.

If I read you right, you can’t ssh to guest from any, right?
A few things to try / check:
(I assume you can login locally to guest)

  • Can you ssh from guest to guest?
  • Check your /etc/ssh/sshd_config - what port does it listen to, is root allowed to login etc.
  • How did you check that sshd is running on guest?
  • Check firewall settings

Thank you so much…I add ssh to firewall and it worked…Great.