ubuntu 安装SSH服务器

在ubuntu console:

apt-get install openssh-server

如果会报找不到包,可以增加附录所示的源地址到/etc/apt/sources.list

然后执行:apt-get update,完成后再次执行:

apt-get install openssh-server

安装完成后,使用指令:ps -e | grep ssh

如果有看到sshd,那么就安装成功了。

在windows可以用putty来连接虚拟机ubuntu远程登录:可以先查看ubuntu虚拟机的ip地址,然后在用putty连接

时填入ubuntu虚拟机的ip addr,然后连接即可。

附录:

# Archive.ubuntu.com

deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse 
deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse 
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse 
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse 
deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse 
deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse 
deb-src http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse 
deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse 
deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse 
deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse 
deb http://archive.ubuntu.org.cn/ubuntu-cn/ feisty main restricted universe multiverse 

# 中国 台湾省台湾大学,推荐网通用户使用,电信PING平均响应速度41MS,PING=100 
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse 
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse 
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse 
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse 
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse 
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse 
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse 
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse 
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main multiverse restricted universe 
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main restricted universe multiverse 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值