Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSH: Permission denied (publickey,password,keyboard-interactive)

434 views
Skip to first unread message

Andrew Alsup

unread,
Feb 14, 2005, 4:00:18 PM2/14/05
to
I'm trying to SSH from one Linux server to another.
I can ssh from Debian->Fedora, but not from Fedora->Debian.
I can successfully SSH to both servers from my workstation (using password
authentication).

Server A: Debian Sarge (testing)
Server B: Fedora Core 1
Workstation: WinXP running cygwin

Since I can successfully SSH to both servers (from my workstation),
something must be dorked with /etc/ssh_config file or sshd_config (I think).
On
both servers, I have no customizations entered in the ssh_config file. See
below:

*** SSH Debian -> Fedora (works) ***
debian:>ssh -v
OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004
debian:>cat /etc/ssh/ssh_config
# all settings are default (nothing changed)
debian:>ssh user@fedora
User's Password for Server Fedora: xxx
*** Welcome to Server Fedora ***
fedora:>exit
debian:>

*** SSH Fedora -> Debian (Doesn't work) ***
fedora:>ssh -v
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
fedora:>cat /etc/ssh/ssh_config
# all settings are default (nothing changed)
fedora:>ssh user@debian
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
fedora:>

*** SSH Cygwin -> Fedora (works) ***
cygwin:>ssh -v
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
cygwin:>ssh user@fedora
User's password for Server Fedora: xxx
*** Welcome to Server Fedora ***
fedora:>exit
cygwin:>

*** SSH Cygwin -> Debian (works) ***
cygwin:>ssh user@debian
User's password for Server Debian: xxx
*** Welcome to Server Debian ***
debian:>exit
cygwin:>

When trying to ssh from fedora to debian, it doesn't even prompt me for the
password! Just error. Any suggestions?

Thanks,
Andy


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

H. S.

unread,
Feb 14, 2005, 4:20:07 PM2/14/05
to
Apparently, _Andrew Alsup_, on 14/02/05 15:08,typed:


Does Fedora -> Cygwin work?

On your Fedora machine, try moving .ssh directory in your home directory
to .ssh_bk and try ssh'ing again. If it works, you may delete the key in
.ssh_bk and rename it back to .ssh.

This is just a starter, others more knowledgable people will be able to
help more.

->HS


--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.

Jan C. Nordholz

unread,
Feb 14, 2005, 4:30:13 PM2/14/05
to
Hi Andy,

could you please post the output of ssh's verbose mode (usually invoked
with -v, AFAIK... -V is for obtaining the version number) - that should
give a clear indication to what's going wrong. It would be perfect if you'd
post the verbose output for both directions (debian->fedora working, and
fedora->debian not working). I think I'll be able to help you then.

Jan

--
Jan C. Nordholz
<jckn At gmx net>

signature.asc

Pigeon

unread,
Feb 14, 2005, 8:40:08 PM2/14/05
to
On Mon, Feb 14, 2005 at 03:08:11PM -0500, Andrew Alsup wrote:
> I'm trying to SSH from one Linux server to another.
> I can ssh from Debian->Fedora, but not from Fedora->Debian.
> I can successfully SSH to both servers from my workstation (using password
> authentication).

Try running ssh -v[v[v]] on the local end and setting LogLevel DEBUG[123]
in /etc/ssh/sshd_config on the remote end to get some more helpful
error messages, that might give more detail on exactly what's not
working.

--
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

signature.asc

Bruno Cesar Ribas

unread,
Feb 14, 2005, 9:00:13 PM2/14/05
to
On Tue, Feb 15, 2005 at 01:31:23AM +0000, Pigeon wrote:
> On Mon, Feb 14, 2005 at 03:08:11PM -0500, Andrew Alsup wrote:
> > I'm trying to SSH from one Linux server to another.
> > I can ssh from Debian->Fedora, but not from Fedora->Debian.
> > I can successfully SSH to both servers from my workstation (using password
> > authentication).
Take a look on the HOME/.ssh permissions on FEDORA
$ls -ld $HOME/.ssh
it should be 700
and $HOME the best way is 755
chmod 755 $HOME
chmod 700 $HOME/.ssh

if this is the problem it might work now

--
Bruno Ribas - ri...@ufpr.br

Andrew Alsup

unread,
Feb 14, 2005, 10:40:06 PM2/14/05
to
It appears that my Fedora box had mode 644 set on /dev/tty*. I found this
out by executing the following:

ssh andy@debian -- didn't work.
sudo ssh andy@debian -- works!

After chmod a+rw /dev/tty* everything is working as expected. Is it pretty
safe to have all the tty devices RW for all?

Thanks for the help,
Andy


"Bruno Cesar Ribas" <ri...@ufpr.br> wrote in message
news:20050215013639.GA3081@chobits...

0 new messages