我在Mac OS X 10.7.4上运行.
我无法访问ssh远程计算机,但是当我这样做时ssh user@localhost,它可以正常工作.
显示的错误是
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to web.iiit.ac.in [14.139.82.8] port 22.
debug1: connect to address 14.139.82.8 port 22: Connection refused
ssh: connect to host web.iiit.ac.in port 22: Connection refused
Run Code Online (Sandbox Code Playgroud)
我在"系统偏好设置"中启用了根登录并禁用了防火墙.
此外,ps aux | grep ssh shows ssh-agent包含/usr/bin/ssh-agent -l和grep ssh输出.
这样做sudo launchctl list|grep ssh表明:
在此之后,sudo launchctl启动com.openssh.sshd; sudo launchctl …
ssh ×1