Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
host: windows xp
guest: centos
VM: VMware Workstation 7.0.1
I can't ssh from host to guest
Don't know why. sshd is running - out of the box, fresh install, nothing added/changed
IP received via dhcp same lan segment for both host and guest - 192.168.3.0 255.255.255.0
can ping host <-> guest firewall disabled (host, guest) selinux disabled
when trying to test local ssh:
Code:
[root@localhost]# ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established
RSA key fingerprent is 8a:xx:xx:xx:xx:xx::x:xx:xx:x:x:x:x ...
Are you sure you want to continue connecting (yes/no)?
Solution By davemcza and someone on tuxradar
In case when host is ms windows based you have to:
Go to device manager, find your NIC, open it. Go to Advanced tab.
Find "Checksum offload" and disable it. don't need to restart host.
Network will be restarted by itself.
Linux based host: TuxRadar article
sudo ethtool --offload eth0 tx off
sudo ethtool --offload eth0 rx off tx off sg off tso off
Use the -v switch and post the output when you try; you need to be a bit more descriptive
Code:
[root@localhost ~]# ssh -v localhost
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 8a:2c:28:21:5d:96:d7:8e:f9:db:db:42:67:a4:eb:42.
Are you sure you want to continue connecting (yes/no)?
Also as i mentioned it's not first time when i'm having this issue in this lan which is my worklplace. When i'm installing CentOS on physical machines everthing runs great, but VMs ...
Do you want to ssh your guest os from your host os?
try with some ssh clients (putty, securecrt or xshell) your output seems ok
or
check the telnet output for port 22
Quote:
[root@localhost]# ssh localhost
why do you do this from your system itself? what senses there?
Why are you connecting to localhost and not the centos box/virtual?
A daft question, sure, but thats where the output ends? You are selecting to continue connecting, are you not?
so...
here is further output:
Code:
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
Write failed: Broken pipe
[root@localhost ~]#
i can't ssh with putty from host windows xp.
but it's new vm install absolutelly fresh and clean...
today i'll had tries installing this VM, but when i reinstalled opnssh and it's components, and answered YES...it "connected" to localhost via ssh and asked me for password, i don't know why password and not username first and then password. UPDATE:
now i've tried to ssh from guest to my other Centos physical machine it succeeded, after sshed from this machine back to my VM (VM->physical->VM) it again said me:
Code:
[root@shadow]# ssh 192.168.3.140
The authenticity of host '192.168.3.140' can't be established
RSA key fingerprent is 8a:xx:xx:xx:xx:xx::x:xx:xx:x:x:x:x ...
Are you sure you want to continue connecting (yes/no)? YES
i logged in my VM, then loged out
tried again ssh into localhost and it worked.....
but still can't ssh from host system into vm.....as i understood RSA key not transfered.........but i can login to my VM at home, and many other VM,,,,and RSA key is being transfered normally to putty....
I might still be completely lost here, but which of those is the connection from your windows box, or as you termed it 'host', to the 'guest'?
none of this examples are connection from windows(host) to centos(guest)
i can't give you any output of this tries - just nothing happens
or if some one needs it, i can post screenshot of empty Putty(or Kitty) window(s)
Have a look at this: www . tuxradar . com / answers / 488
This person is running vmware on a linux machine, and found that the routing is being bypassed for certain protocols and handed over to the network card to do.
So, he solves the problem by changing setting on the Linux based host that prevent the network card from being given that responsibility.
I have exactly the same setup and problem as you, I can ping my virtual machine from XP and my virtual machine can ping it's XP host. But, any other protocols except for ICMP seem to be unable to complete the route.
I was running VMWare on a different machine before, I got this new (and improved) machine and now I sit with this problem that I have not had before, so this seems to be the same problem ... i.e. Hardware related.
So, I will now go looking for a place in Windows XP where the equivalent of:
sudo ethtool --offload eth0 tx off
or
sudo ethtool --offload eth0 rx off tx off sg off tso off
Okay, I looked in the logical place, turned off everything that said "offload", and I can now open the SSH window on my XP Machine to my Virtual Machine.
In your Windows XP Host machine, as follows:
Network Connections -> Local Area Connection -> Properties
Click on the CONFIGURE button next to the network card controller.
Click on the ADVANCED tab.
I DISABLED:
- Checksum Offload (Was on RX & TX Enabled)
- Flow Control (Was on Enabled)
- Large Send Offload (Was on Enabled)
I then rebooted and started up the Virtual Machine, and could SSL to it.
Eureka!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.