1030071002
asked on
ssh connection refuse
ssh connection refuse
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
asterisk-star@Asterisk:~$ iptables -L-n | dpt:22
iptables v1.4.1.1: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
-bash: dpt:22: command not found
asterisk-star@Asterisk:~$
iptables v1.4.1.1: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
-bash: dpt:22: command not found
asterisk-star@Asterisk:~$
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
asterisk-star@Asterisk:~$ ssh 0
The authenticity of host '0 (0.0.0.0)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e :8c:a7:77: d4:5e:65:8 f.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts.
asterisk-star@0's password:
System information as of Fri Jul 10 19:00:03 EDT 2009
System load: 1.49 Memory usage: 41% Processes: 141
Usage of /: 63.1% of 7.23GB Swap usage: 3% Users logged in: 1
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Fri Jul 10 16:57:39 2009 from localhost
The authenticity of host '0 (0.0.0.0)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts.
asterisk-star@0's password:
System information as of Fri Jul 10 19:00:03 EDT 2009
System load: 1.49 Memory usage: 41% Processes: 141
Usage of /: 63.1% of 7.23GB Swap usage: 3% Users logged in: 1
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Fri Jul 10 16:57:39 2009 from localhost
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
using putty from windows 7
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
asterisk-star@Asterisk:~$ sudo ssh 0
The authenticity of host '0 (0.0.0.0)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e :8c:a7:77: d4:5e:65:8 f.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts.
root@0's password:
Permission denied, please try again.
root@0's password:
Permission denied, please try again.
root@0's password:
Permission denied (publickey,password).
asterisk-star@Asterisk:~$ sudo ssh 0
root@0's password:
Permission denied, please try again.
root@0's password:
The authenticity of host '0 (0.0.0.0)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts.
root@0's password:
Permission denied, please try again.
root@0's password:
Permission denied, please try again.
root@0's password:
Permission denied (publickey,password).
asterisk-star@Asterisk:~$ sudo ssh 0
root@0's password:
Permission denied, please try again.
root@0's password:
ASKER
no
ASKER
no puttyto ubuntu
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
asterisk-star@Asterisk:~$ sudo ssh localhost
[sudo] password for asterisk-star:
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e :8c:a7:77: d4:5e:65:8 f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
Permission denied, please try again.
root@localhost's password:
Permission denied, please try again.
root@localhost's password:
Permission denied (publickey,password).
asterisk-star@Asterisk:~$
[sudo] password for asterisk-star:
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 00:e7:75:c7:13:f2:c2:69:7e
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
Permission denied, please try again.
root@localhost's password:
Permission denied, please try again.
root@localhost's password:
Permission denied (publickey,password).
asterisk-star@Asterisk:~$
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
already uncommented # PermitRootLogin yes
ASKER
connection still say refuse
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
asterisk-star@Asterisk:~$ sudo /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.1p1 Debian-5ubuntu1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.R SA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-204 8
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.D SA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-102 4
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/s shd'
debug1: rexec_argv[1]='-d'
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.
debug1: sshd version OpenSSH_5.1p1 Debian-5ubuntu1
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.R
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-204
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.D
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-102
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/s
debug1: rexec_argv[1]='-d'
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.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:22 ::1:48172 ESTABLISHED -
tcp6 0 0 ::1:48172 ::1:22 ESTABLISHED 5511/ssh