Ubuntu 系统搭建php服务器 用ssh 远程操作

一:在桌面下载xshell客户端连接 ,vmavar 上的 Ubuntu系统,遇到的问题跟大家分享一下,希望大家少走弯路

Ubuntu系统默认没有ssh server 要安装

apt-get install openssh-server 服务端程序

apt-get install openssh-client 客户端程序

查看是否启动

ps -e|grep ssh

ps -e 是查看系统进程

看到sshd 说明ssh-server 已经启动

sshd 的开启与关闭

sudo /etc/init.d/ssh stop

sudo /etc/init.d/ssh start

二:在ssh-client登录的方式,用代码方式

ssh linux上的用户名@linux的ip地址

然后输入密码即可