Enable ssh server on Ubuntu 18.04

By default Ubuntu desktop does not have ssh server enabled or installed , so we need to install openssh to get it enabled or you may get error like “Network error: Connection refused”
1.On your Ubuntu side, open a terminal by pressing Ctl+Alt+t , then run below command to install openssh-server

sudo apt-get install openssh-server

2.Optional you can check the running status of the ssh server service with below command

sudo service ssh status

The ssh server configuration file locates /etc/ssh/sshd_config in case you want to customize your ssh server configuration.

3.Now you should be able to ssh to your ubuntu machine ,good luck

Remote desktop to ubuntu from Windows 10

  1. On your Ubuntu machine side , open a terminal(Ctrl+Alt+t) and run below command to install xrdp
sudo apt-get -y install xrdp

2, On your Windows machine side , open your Remote Desktop Connection Manger

3.Input your Ubuntu machine’s Ip Address or Hostname in the Computer field,then click Connect

4.Click Yes if a warning window prompts

5.Input the username and password of your ubuntu machine

6.Click OK then you should be able to connect to your ubuntu

Note:If you get a blank screen or the RDP window exits automatically , maybe because you or someone already logged into the console ,you need to get the console logged out.