Not sure where to post this but I've come across something odd on my end in the past week.
I can't SSH out to another computer any more, but when I go to another station and do it from there, it does work.
I keep getting "port 22 connection refused".
I ran nmap localhost and port 22 isn't open, Network Utility port scan on my computer shows more ports open than nmap did, but still no port 22. But does it even have to be for outgoing connections?
I suppose only the target device should have its port listening?
When I run ssh -v -v -v username@hostipaddress I can see that there's definitely a connection being made, but as soon as I enter the password, it fails. Which is odd because I'm 200% certain the password is correct. After a few tries I then get this error message (ip and username redacted):
I can't SSH out to another computer any more, but when I go to another station and do it from there, it does work.
I keep getting "port 22 connection refused".
I ran nmap localhost and port 22 isn't open, Network Utility port scan on my computer shows more ports open than nmap did, but still no port 22. But does it even have to be for outgoing connections?
I suppose only the target device should have its port listening?
Starting Nmap 7.12 ( https://nmap.org ) at 2016-10-11 16:15 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000039s latency).
Other addresses for localhost (not scanned): ::1 fe80::1
Not shown: 500 closed ports, 496 filtered ports
PORT STATE SERVICE
4242/tcp open vrml-multi-use
49152/tcp open unknown
49153/tcp open unknown
49154/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 3.19 seconds
When I run ssh -v -v -v username@hostipaddress I can see that there's definitely a connection being made, but as soon as I enter the password, it fails. Which is odd because I'm 200% certain the password is correct. After a few tries I then get this error message (ip and username redacted):
debug1: Host 'x.x.x.x' is known and matches the ECDSA host key.
debug1: Found key in /Users/username/.ssh/known_hosts:27
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug2: key: /Users/username/.ssh/id_rsa (0x0)
debug2: key: /Users/username/.ssh/id_dsa (0x0)
debug2: key: /Users/username/.ssh/id_ecdsa (0x0)
debug2: key: /Users/username/.ssh/id_ed25519 (0x0)
debug3: send packet: type 5
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/username/.ssh/id_rsa
debug3: no such identity: /Users/username/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /Users/username/.ssh/id_dsa
debug3: no such identity: /Users/username/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /Users/username/.ssh/id_ecdsa
debug3: no such identity: /Users/username/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /Users/username/.ssh/id_ed25519
debug3: no such identity: /Users/username/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug3: send packet: type 50
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: receive packet: type 60
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
debug3: send packet: type 61
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).