我正在使用 heroku 12.04 并尝试运行
$ git push heroku master
但我得到下一个错误:
ssh: connect to host heroku.com port 22: Connection refused
如果我尝试
$ ssh git@github.com
我犯了同样的错误
我在这件事上寻找了其他问题,但还没有弄清楚,但这是我检查过的一些事情:
我安装了 openssh-server
$ service ssh status
ssh start/running, process 8819$ service sshd start
sshd: unrecognized service$ ssh -vvv localhost
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused我还尝试将 sshd_config 从端口 22 更改为端口 2222,但我仍然被拒绝端口 2222..
$ sudo netstat -pantu | grep LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 5691/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 9081/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1063/cupsd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1142/postgres
tcp6 0 0 :::22 :::* LISTEN 9081/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1063/cupsd
谁能帮帮我吗?