I'm not a guru of ssh but somehow I cannot connect to server with IP and username:
ssh -p [PORT] [USERNAME]@[SERVER_IP]
Response is always:
Connection closed by [SERVER_IP]
The problem is on the remote server side?
I'm on Mac OS X (mavericks).
update: log looks as follows:
debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to [SERVER_IP] port 22068. debug1: Connection established. debug3: Incorrect RSA1 identifier debug3: Could not load "/Users/dmitri/.ssh/id_rsa" as a RSA1 public key debug1: identity file /Users/dmitri/.ssh/id_rsa type 1 debug1: identity file /Users/dmitri/.ssh/id_rsa-cert type -1 debug1: identity file /Users/dmitri/.ssh/id_dsa type -1 debug1: identity file /Users/dmitri/.ssh/id_dsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1 debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH_5* debug2: fd 3 setting O_NONBLOCK debug3: put_host_port: [SERVER_IP]:22068 debug3: load_hostkeys: loading entries for host "[SERVER_IP]:22068" from file "/Users/dmitri/.ssh/known_hosts" debug3: load_hostkeys: loaded 0 keys debug1: SSH2_MSG_KEXINIT sent
ANOTHER UPDATE: sshd_config
Port 22068 Protocol 1,2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key