ubuntu14.04 ssh 远程连接和静态ip的设置
2016-05-09 21:59
477 查看
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
首先 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
相关文章推荐
- [数据结构]适用于字符串的Hash函数
- cPanel下如何设定流量统计工具
- 哈夫曼树与哈夫曼编码
- ZOJ 1112 Dynamic Rankings【动态区间第K大,整体二分】
- spring boot搭建多数据源,记录一下
- 面向对象(下)知识点
- SQL优化--发现问题
- 使用html2canvas截屏,利用itextpdf转为pdf保存到数据库
- pycharm运行脚本为何不生成测试报告?
- java.io.IOException: Type mismatch in key from map:解决方法
- ArchLinux安装VMware后网络无法连接
- POJ 1160 DP
- 集合接口Collection案例
- shell爬虫
- mybatis+struts2
- POJ 1160 DP
- 让Grub 2来拯救你的 bootloader
- HDU 4847 Wow! Such Doge! (注意输入格式!)
- 第九周总结
- 《剑指offer》-树的子结构