LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-20-2005, 02:43 PM   #1
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
ssh public key authentication to different remote home directory


I am wondering if there is a way to notify ssh of the remote home directory?

Here is my situation. On my local machine, I am using cygwin and create the private and public keys using ssh-keygen. These keys are stored in:
Quote:
/home/bob/.ssh/id_dsa AND /home/bob/.ssh/id_dsa.pub
However, on the remote machine, the home directory for bob is set to: /home/ftp-users so I place my id_dsa.pub data in: /home/ftp-users/.ssh/authorized_users.

This is where the problem occurs. If I do:

ssh -vvv bob@remote.server

I get the following [partial] output:

Code:
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Trying private key: /home/bob/.ssh/id_dsa
debug3: no such identity: /home/bob/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
Is it trying to find the authorized_keys in /home/bob on the remote machine or do I just have something else wrong?

I think the problem occurs with the messages:

Code:
debug3: no such identity: /home/bob/.ssh/id_dsa
debug2: we did not send a packet, disable method
Anyone have any other suggestions? Any way to see what the server is attempting during this process?

P.S. I am using the same versions of OpenSSH on both machines (3.6.1p1) and I am able to log in properly using the password. Furthermore, I have set up another PC using SSH Secure Shell and have got the public key authorization to work correctly with the same remote server setup.
 
Old 03-20-2005, 03:27 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
i would guess that something is not right in sshd.conf. post that and we can take a look.

tom
 
Old 03-20-2005, 03:39 PM   #3
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
The only sshd.conf I have on my system is:

Code:
/etc/log.d/conf/services/sshd.conf
which reads:

Code:
###########################################################################
# $Id: sshd.conf,v 1.12 2002/10/12 02:08:09 kirk Exp $
###########################################################################

# You can put comments anywhere you want to.  They are effective for the
# rest of the line.

# this is in the format of <name> = <value>.  Whitespace at the beginning
# and end of the lines is removed.  Whitespace before and after the = sign
# is removed.  Everything is case *insensitive*.

# Yes = True  = On  = 1
# No  = False = Off = 0

Title = "SSHD"

# Which logfile group...
LogFile = secure
LogFile = messages

# Only give lines pertaining to the sshd service...
*OnlyService = sshd
*RemoveHeaders

########################################################
# This was written and is maintained by:
#    Kirk Bauer <kirk@kaybee.org>
#
# Please send all comments, suggestions, bug reports,
#    etc, to kirk@kaybee.org.
########################################################
NOTE: I can connect to this server using public key authentication from another PC client so I'm assuming that the server is OK
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh public key authentication teacup Linux - Networking 4 11-27-2011 11:27 PM
DISCUSSION: Public key authentication with ssh david_ross LinuxAnswers Discussion 31 02-02-2011 08:13 AM
ssh public key authentication problem flgal3 Linux - Software 21 02-06-2009 11:15 AM
SSH - Problem with Public Key Authentication HaPagan Linux - Security 5 11-28-2005 11:27 PM
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 02:33 PM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration