Solved

unable to connect to remote sftp site using ssh/ssh2 public authentication keys

Posted on 2004-09-26
2
392 Views
Last Modified: 2010-04-22
I am trying to connect to a remote sftp server using public authentication (using private and public keys --dsa)

I am unable to connect and am getting the following error:
debug: Ssh2AuthClient/sshauthc.c:316/ssh_authc_completion_proc: Method 'publickey' disabled.

(the host server ssh version is
ssh: SSH Secure Shell 3.1.0 (non-commercial version) on i686-pc-linux-gnu)
and the remote sftp server version is
(OpenSSH_3.4 NetBSD_Secure_Shell-20030917, SSH protocols 1.5/2.0, OpenSSL 0x00906
07f)

Btw, I narrowed to error to be on the host server.
because I am able to connect to the remote sftp server from two other linux boxes using public/private keys(found no problem there)

Any inputs will be highly appreciated

Thanks
0
Comment
Question by:vsuripeddi
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 12156490
If I understand the question correctly public/private keys work if the client side is running OpenSSH (which is the default on Linux and the server is also using OpenSSH. But the connection fails if the client is running the non-commercial version of SSH. Is that correct?

That might be a case of SSH not being compatible at the public/private key level and the obvious solution would be to install OpenSSH on this client.
0
 

Assisted Solution

by:benjamin_smee
benjamin_smee earned 25 total points
ID: 12240859
the answer is simple, ensure that you have allowed public key authentication on the SERVER and rehup the ssh daemon for it to take effect. In particular the configuration directive you are after is:
PubkeyAuthentication yes
in /etc/ssh/sshd_config
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best software based IDS? 5 127
Change IP on Red Hat Server 6 44
CentOS create a user with predefined MD5 Hashed password 17 97
wipe a usb using python 5 65
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question