scp出现ssh port 22: Connection refused 问题解决具体步骤
2014-06-26 10:01
453 查看
[root(0)@sys1109:20:29/home/work/Code_release/bj]#scp./release.shroot@192.168.161.151:/Users/a2014102/Downloads
ssh:connecttohost192.168.161.151port22:Connectionrefused
lostconnection
Solution:
Onepossiblereasonisthatbecausethesshserverdaemon,orsshd,
isnotloadedandrunningonlocalhost,soanyattempttosshconnect
tolocalhostwouldfail.Ichecktoseewhethersshandsshdarerunning
bytypingthefollowingcommand:
$psaux|grepssh
#Result:bunchoflines,butnoneofthemisabout"sshd",onlyonelineisabout"ssh"
Resultis,Ionlyseesshrunning,butnotsshd.SoIknowsshserverdaemonisprobablynotstartedyet.
First,IverifythatIhaveinstalledthepackage“openssh-server”onmyfedorabox.
ThenIcheckthestatusofsshdservice:
YoumaynothaveOpenSSHcompletelyinstalled.Typethisinterminal:
sudoapt-getinstallopenssh-client
sudoapt-getinstallopenssh-server
Anotherproblemthatyoucouldhaveisthatyourfirewallcouldbe
blockingthesshconnection.IuseFirewallConfigurationtomanagemy
portsandfirewall.
torestartittype
sudo/etc/init.d/sshrestart
tostopittype
sudo/etc/init.d/sshstop
tostartittype
sudo/etc/init.d/sshstart
以下是主要的关键步骤:
ToenabletheOpenSSHserverofMacOSX,openSystemPreferences:
ClickonsharingandenableRemoteLogin:
ThiswillstartupOpenSSHserverautomatically.
直接关掉就保存了,因为mac是时时保存的。
ssh:connecttohost192.168.161.151port22:Connectionrefused
lostconnection
Solution:
Onepossiblereasonisthatbecausethesshserverdaemon,or
isnotloadedandrunningonlocalhost,soanyattempttosshconnect
tolocalhostwouldfail.Ichecktoseewhethersshandsshdarerunning
bytypingthefollowingcommand:
$psaux|grepssh
#Result:bunchoflines,butnoneofthemisabout"sshd",onlyonelineisabout"ssh"
Resultis,Ionlyseesshrunning,butnotsshd.SoIknowsshserverdaemonisprobablynotstartedyet.
First,IverifythatIhaveinstalledthepackage“openssh-server”onmyfedorabox.
ThenIcheckthestatusofsshdservice:
YoumaynothaveOpenSSHcompletelyinstalled.Typethisinterminal:
sudoapt-getinstallopenssh-client
sudoapt-getinstallopenssh-server
Anotherproblemthatyoucouldhaveisthatyourfirewallcouldbe
blockingthesshconnection.IuseFirewallConfigurationtomanagemy
portsandfirewall.
torestartittype
sudo/etc/init.d/sshrestart
tostopittype
sudo/etc/init.d/sshstop
tostartittype
sudo/etc/init.d/sshstart
以下是主要的关键步骤:
OpenSSHserveronMacOSX
OpenSSHserverispartofMacOSXandyoudon'tneedtoinstallanyadditionalpackage.ToenabletheOpenSSHserverofMacOSX,openSystemPreferences:
ClickonsharingandenableRemoteLogin:
ThiswillstartupOpenSSHserverautomatically.
直接关掉就保存了,因为mac是时时保存的。
相关文章推荐
- scp出现ssh port 22: Connection refused 问题解决具体步骤
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- SSH连接GitHub出现 ssh: connect to host github.com port 22: Connection refused解决方法
- 在Ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Ubuntu 安装配置SSH(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 问题
- hadoop 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 问题
- 解决connect to host localhost port 22: Connection refused问题
- 【解决】ssh: connect to host slave port 22: Connection timed out的问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ubuntu 14.04下scp传输文件出现ssh: connect to host ***port 22: Connection timed out
- ssh: connect to host localhost port 22: Connection refused 问题