apt-get update与ssh server服务安装
来源:互联网 发布:剑三男捏脸数据 编辑:程序博客网 时间:2024/06/07 15:33
更新apt-get命令
sudo apt-get update
更新前替换/etc/apt/sources.list
地址:http://download.csdn.net/detail/kerryzb/9511765
安装ssh server
先判断是否已安装了ssh服务
ssh localhost
如果没有安装会显示:
ssh: connect to host localhost port 22: Connection refused
sudo /etc/init.d/ssh start
启动后,可以通过如下命令查看服务是否正确启动
ps -e|grep ssh
正常启动则显示为:
6212 ? 00:00:00 sshd
ssh默认的端口是22,可以更改端口,更改后先stop,
然后start就可以了。改配置在/etc/ssh/sshd_config下
安装 sudo apt-get install openssh-server
可能报错
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1)
Recommends: xauth but it is not going to be installed
Recommends: ssh-import-id but it is not going to be installed
解决办法
先装一个依赖的指定版本的 openssh-client (旧版):
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get update
更新前替换/etc/apt/sources.list
地址:http://download.csdn.net/detail/kerryzb/9511765
安装ssh server
先判断是否已安装了ssh服务
ssh localhost
如果没有安装会显示:
ssh: connect to host localhost port 22: Connection refused
安装:
sudo apt-get install openssh-server
sudo /etc/init.d/ssh start
启动后,可以通过如下命令查看服务是否正确启动
ps -e|grep ssh
正常启动则显示为:
6212 ? 00:00:00 sshd
ssh默认的端口是22,可以更改端口,更改后先stop,
然后start就可以了。改配置在/etc/ssh/sshd_config下
安装 sudo apt-get install openssh-server
可能报错
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1)
Recommends: xauth but it is not going to be installed
Recommends: ssh-import-id but it is not going to be installed
解决办法
先装一个依赖的指定版本的 openssh-client (旧版):
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
0 0
- apt-get update与ssh server服务安装
- Debian 配置apt-get源安装SSH服务
- apt-get,apt-update
- sudo apt-get install openssh-server 需要安装 sudo apt-get update 404错误解决办法 The authenticity of
- apt-get update与apt-get upgrade区别
- apt-get安装与卸载
- apt-get update 出错
- apt-get update sourcelist
- sudo apt-get update
- apt-get update errors
- sudo apt-get update
- 使用apt-get update
- apt-get update 失败
- sudo apt-get update
- apt-get update 失败
- apt-get update 过期
- apt-get update错误信息
- apt-get update
- 服务器基础 tomcat端口被占用问题的解决
- 10815 - Andy's First Dictionary
- HDU2059 多段决策
- Eclipse将引用了第三方jar包的Java项目打包成jar文件的两种方法
- web基础 Web.xml配置详解
- apt-get update与ssh server服务安装
- controller配置汇总
- Android studio使用问题收录
- [数据结构]链表的基本操作
- iOS开发网络篇—网络编程基础
- 设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
- 写论文第九天:MATLAB之rsindex函数
- UML类图符号
- 信息的表示