debian启动vncserver连接无法看到界面和启动ssh服务

debian启动vncserver连接无法看到界面
su root切换为root账户,然后使用vncserver命令启动vnc服务

debian启动ssh服务
切换为root用户
ssh start
报错ssh:connect to host start port 22: Connection refused
切换到/etc/init.d然后执行
./ssh start
报错Starting OpenBSD Secure Shell server: sshd /var/run/sshd must be owned by root and not group or world-writable
删除/var/run下的sshd目录
rm -rf sshd
./ssh start
启动成功

你可能感兴趣的:(linux)