Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
4 added 1009 characters in body
source | link

UPDATE3:

root@p148401:/etc/init.d# sudo service ssh stop
Stopping OpenBSD Secure Shell server: sshd.
root@p148401:/etc/init.d# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.

And doesn't respond anymore...needs to restart

..and ssh config is here http://codepad.org/8bynXZQC

UPDATE3:

root@p148401:/etc/init.d# sudo service ssh stop
Stopping OpenBSD Secure Shell server: sshd.
root@p148401:/etc/init.d# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.

And doesn't respond anymore...needs to restart

..and ssh config is here http://codepad.org/8bynXZQC

3 deleted 1 characters in body
source | link

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

UPDATE1: if I run /usr/sbin/sshd -d the result is:

debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.

UPDATE2: The log is:

Dec 29 22:06:44 p148401 sshd[32456]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=changed_host  user=username
Dec 29 22:06:47 p148401 sshd[32456]: Failed password for avestiqueusername from 8*.*.*.* port 52765 ssh2

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

UPDATE1: if I run /usr/sbin/sshd -d the result is:

debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.

UPDATE2: The log is:

Dec 29 22:06:44 p148401 sshd[32456]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=changed_host  user=username
Dec 29 22:06:47 p148401 sshd[32456]: Failed password for avestique from 8*.*.*.* port 52765 ssh2

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

UPDATE1: if I run /usr/sbin/sshd -d the result is:

debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.

UPDATE2: The log is:

Dec 29 22:06:44 p148401 sshd[32456]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=changed_host  user=username
Dec 29 22:06:47 p148401 sshd[32456]: Failed password for username from 8*.*.*.* port 52765 ssh2
2 added 923 characters in body
source | link

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

UPDATE1: if I run /usr/sbin/sshd -d the result is:

debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.

UPDATE2: The log is:

Dec 29 22:06:44 p148401 sshd[32456]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=changed_host  user=username
Dec 29 22:06:47 p148401 sshd[32456]: Failed password for avestique from 8*.*.*.* port 52765 ssh2

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

I set groups:

usermod -G ssh username

and then I've checked account info:

id username

the result is:

uid=1000(username) gid=1001(username) groups=100(username)

Anyway if I try to login using ssh I get an error: Permission denied, please try again.

What I'm doing wrong?

UPDATE1: if I run /usr/sbin/sshd -d the result is:

debug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.

UPDATE2: The log is:

Dec 29 22:06:44 p148401 sshd[32456]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=changed_host  user=username
Dec 29 22:06:47 p148401 sshd[32456]: Failed password for avestique from 8*.*.*.* port 52765 ssh2
1
source | link