View previous topic :: View next topic |
Author |
Message |
gnychis Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/23690779544208c4907a78.jpg)
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Wed Jan 03, 2007 9:31 pm Post subject: ssh "Permission Denied" |
|
|
Hi,
I was wondering if anyone could help me figure out a permission denied error, my password is correct, and I've verified that on the remote machine there are no addresses blocked
Code: |
-bash-2.05b$ ssh datapository.net -v
OpenSSH_2.5.1p1, SSH protocols 1.5/2.0, OpenSSL 0x009060bf
debug: Reading configuration data /etc/ssh_config
debug: Rhosts Authentication disabled, originating port will not be trusted.
debug: ssh_connect: getuid 12027 geteuid 12027 anon 1
debug: Connecting to datapository.net [155.98.33.77] port 22.
debug: Connection established.
debug: identity file /usr1/gnychis/.ssh/identity type 3
debug: identity file /usr1/gnychis/.ssh/id_dsa type 3
debug: Remote protocol version 1.99, remote software version OpenSSH_3.8.1p1 FreeBSD-20040419
debug: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat ^OpenSSH
debug: Local version string SSH-1.5-OpenSSH_2.5.1p1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'datapository.net' is known and matches the RSA1 host key.
debug: Found key in /usr1/gnychis/.ssh/known_hosts:1
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
Permission denied.
debug: Calling cleanup 0x805f920(0x0)
|
any ideas?
Thanks!
George _________________ <---- me and Richard Stallman ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
justincataldo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9117011004ac5f83d3245f.jpg)
Joined: 15 Jun 2005 Posts: 376 Location: Australia
|
Posted: Wed Jan 03, 2007 11:24 pm Post subject: |
|
|
You could try emptying your ~/.ssh/known_hosts file first. It might be a key conflict or something.
What does /var/log/messages say about the ssh attempts? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gnychis Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/23690779544208c4907a78.jpg)
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Thu Jan 04, 2007 12:34 am Post subject: |
|
|
no luck from removing known_hosts ... and dmesg says nothing _________________ <---- me and Richard Stallman ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cyker Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Thu Jan 04, 2007 1:54 am Post subject: |
|
|
Can you connect to the remote machine from another system?
Are you using interactive passwords or key exchange?
What's the server set up to allow?
If the server only allows key exchange, you need to have the keys setup on it or it won't let you in.
If you're using passwords, I'm not sure... are there any intrusion detection systems running on the server? Maybe you've been locked out?
(I get that a lot with mine... have to manually purge my hosts.deny on a regular basis ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gnychis Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/23690779544208c4907a78.jpg)
Joined: 23 Mar 2005 Posts: 1004 Location: Pittsburgh, PA
|
Posted: Thu Jan 04, 2007 2:02 am Post subject: |
|
|
i was able to use this exact method on two other machines perfectly sharing the id file, but it won't seem to work on this one
so, i can get in using other computers, but not this computer
I'm not exactly sure what the server is set up to allow, its not my server :\ _________________ <---- me and Richard Stallman ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
justincataldo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9117011004ac5f83d3245f.jpg)
Joined: 15 Jun 2005 Posts: 376 Location: Australia
|
Posted: Thu Jan 04, 2007 1:33 pm Post subject: |
|
|
Are you sure it's running on port 22? I've got mine running on ports 22 and 443 for example. You can define this in /etc/ssh/sshd_config
Code: |
aria ~ # cat /etc/ssh/sshd_config | less
#$OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 443
Port 22
#Port 22
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
... |
An easy way to check if you have nmap installed would be:
Code: | aria ~ # nmap localhost
Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2007-01-04 23:31 EST
Interesting ports on aria (127.0.0.1):
(The 1666 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
443/tcp open https
3128/tcp open squid-http
3306/tcp open mysql
5901/tcp open vnc-1
6001/tcp open X11:1
Nmap finished: 1 IP address (1 host up) scanned in 0.204 seconds
aria ~ # |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|