scp 出现 ssh : connect to host localhost port 22:Connection refused
来源:互联网 发布:linux新建目录权限命令 编辑:程序博客网 时间:2024/06/07 03:33
使用scp
命令在 Ubuntu 两台主机之间传输数据的时候可能会出现 ssh : connect to host localhost port 22:Connection refused
的错误,这可能是由于ssh-server没有安装或是启动.
ps -A | grep sshd
来检查ssh-server是否运行
使用命令:
/etc/init.d/ssh -start
来启动ssh服务
如果没有安装可以用命令:
sudo apt-get install openssh-server
来安装ssh-server.
0 0
- scp 出现 ssh : connect to host localhost port 22:Connection refused
- 输入ssh localhost, 出现问题“ssh: connect to host localhost port 22: Connection refused”
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- cygwin ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- Ubuntu ssh: connect to host localhost port 22:Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- Linux--ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- 黑马程序员—OC基础--类别与扩展
- 微软100题(28)整数的二进制表示中1的个数
- 游戏开发 定义数据模型
- 机器视觉和图像处理方面的研究工作应该知道
- activity生命周期详解
- scp 出现 ssh : connect to host localhost port 22:Connection refused
- 4.5操作矩阵堆栈 与 状态机
- android_fws_ams _study
- Android组件Android-Universal-Image-Loader学习
- Django学习____视图和网址
- 接口自动化思路_JAVA
- No module named google.protobuf
- phread_con_wait和pthread_mutex_lock实现的生产者消费者模型
- 熊辉:我是如何收获了数据挖掘的人生?