Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh "Permission Denied"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Wed Jan 03, 2007 9:31 pm    Post subject: ssh "Permission Denied" Reply with quote

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 :)
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Wed Jan 03, 2007 11:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Thu Jan 04, 2007 12:34 am    Post subject: Reply with quote

no luck from removing known_hosts ... and dmesg says nothing
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Jan 04, 2007 1:54 am    Post subject: Reply with quote

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 :P)
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Thu Jan 04, 2007 2:02 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Thu Jan 04, 2007 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum