xterm连接虚拟机里的ubuntu

# mobaxterm连接在虚拟机的abuntu

## 1.在Ubuntu上打开SSH服务

##### 安装 openssh-client 和 openssh-server

sudo apt-get install openssh-client
sudo apt-get install openssh-server


##### 查看ssh服务是否启动

sudo ps -e | grep ssh

出现 sshd 说明已经启动

usr@ultravires:~$ sudo ps -e | grep ssh
9930 ?        00:00:00 sshd


##### 启动、停止、重启服务

sudo service ssh start           # 启动
sudo service ssh stop            # 停止
sudo service ssh restart         # 重启


##### 配置ssh

###### sudo vi /etc/ssh/sshd_config 
## 2.使用mobaxterm连接到Ubuntu

###### 1.点击session-->ssh,输入Ubuntu的ip地址,用户名。端口号默认为22,发生冲突时更改

查看ip命令:ifconfig -a

###### 2.在mobaxterm中输入Ubuntu的密码

#### 3.[Ubuntu16.04下安装VS Code](https://www.cnblogs.com/spyplus/p/6254418.html)

在Ubuntu下面安装Visual Studio Code

```
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
umake web visual-studio-code
```

猜你喜欢

转载自blog.csdn.net/JEROCHAN/article/details/89530882