ubuntu14.04 ssh 远程连接和静态ip的设置

ubuntu14.04安装SSH

首先 sudo apt-get update 更新本地库索引

sudo apt-get install openssh-server 安装服务

ps -e | grep sshd  查看ssh进程


ubuntu14.04设置静态ip


sudo vim /etc/network/interfaces  找到文件并作如下修改

auto eth0
iface eth0 inet static
address ip地址
gateway 网关
netmask 255.255.255.0


sudo vim /etc/resolv.conf  写上一个公网的DNS

nameserver 202.96.128.86




猜你喜欢

转载自blog.csdn.net/he980725866/article/details/51356619