扬州公司做网站公司,北京建设工程信息网站,最新网页游戏公益服,设计制作费需要交印花税吗一、开启ssh服务首先需要安装打开ssh服务的库#xff1a; sudo apt-get install openssh-server 二、检查当前的ssh开启情况#xff1a; ps -e |grep ssh 三、如果有sshd#xff0c;则ssh-server已经启动#xff1b;若仅有agent#xff0c;则尚未启动#xff1b; 开启ssh…一、开启ssh服务首先需要安装打开ssh服务的库 sudo apt-get install openssh-server 二、检查当前的ssh开启情况 ps -e |grep ssh 三、如果有sshd则ssh-server已经启动若仅有agent则尚未启动 开启ssh服务 /etc/init.d/ssh start 或者systemctl restart sshd 四、如果希望开机自动启动ssh服务 sudo systemctl enable sshd 同样的关闭服务命令为 sudo systemctl disable ssh 单次开启服务 sudo systemctl start ssh 单次关闭服务 sudo systemctl stop ssh 针对自启动命令输入之后reboot就可以使用sudo systemctl status sshd命令查看ssh是否启动看到Active: active (running)即表示成功
如果单纯开启ssh服务那就ps查看ssh再/etc/init.d/ssh start 或者systemctl restart sshd
连接xshell的时候一直连接不上 重启之后也是不管用这时候ifconfig查看虚拟机的网卡是否发生变化因为ip非静态