

If you see sshd, it indicates that ssh-server has been started.ģ. If only SSH-agent is available, ssh-server has not been started./etc/init. $ Sudo apt-Get install OpenSSH-server openssh-Client

First install the SSH server on the server. There are many articles on enabling the SSH service in Ubuntu on the Internet, but most of the methods described are not ideal after testing, and remote login to Ubuntu is not possible, the reason is that the ssh-Server service is not enabled.ġ. conf to uncomment all the commented valid lines under by default. Then, you can ping the web site of another machine on Windows XP or Ubuntu, and there will also be ssh.Ģ. In the last step, restart the Ubuntu Nic.Įnter the restart command in the terminal, as shown below: the gateway and subnet mask are used, and the next DNS to be modified, you can enter the CMD command ipconfig-all on Windows XP to get it.ģ) set DNS (this step may not be performed in virtualbox)Īs mentioned above, after obtaining DNS through the command ipconfig-all in Windows XP via cmd, modify/etc/resolv. You can use ifconfig-A on the terminal to check whether eth0 or eth1.

Some users do not need to modify the settings. Nameserver 192.168.1.1 # Network Management DNS Set a fixed IP address and DNS on Ubuntu.Įnter sudo VI/etc/Network/interfaces on the terminal, which is usually displayed:Īddress 192.168.0.120 # The fixed IP address you want to set then select your corresponding Nic under advanced, which will be automatically selected here.Ģ. Set the network connection mode on Sun virtualbox.įind the Ubuntu you want to set on Sun virtualbox, click Settings-> network-> Local Connection 1-> select bridged adapter as the connection method (NAT by default, this is the key to preventing mutual access ). Set static IP addresses in Ubuntu (virtualbox)ġ.
