LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 03-08-2008, 08:27 PM   #1
cdaaawg
LQ Newbie
 
Registered: Apr 2007
Location: Tacoma, WA
Distribution: Ubuntu 7.10
Posts: 1

Rep: Reputation: 1
public key authentication for ssh - linux client to winxp server


I have been trying to get public key authentication working between an Ubuntu 7.10 openssh client and a winxp home sp2 openssh server for days now. Password authentication works well between the linux client and win server. Key authentication works between two linux boxes. I have followed about every link on the net that explains how to get the windows server to accept the key, all to no avail. Has anyone had any success with this scenario? Any help would be greatly appreciated. If I can't get it to work, I'll have to use password authentication which I would rather not do.
 
Old 03-09-2008, 02:13 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
CygwinOpenSSH VNC Tunnel...This doc may give you some pointers.
 
Old 03-09-2008, 02:31 PM   #3
internetSurfer
Member
 
Registered: Jan 2008
Location: w3c
Distribution: Slackware 12 Zenwalk 5.2
Posts: 71

Rep: Reputation: 16
Another how-to: Installing OpenSSH for Windows 2003 Server - How to get it working
 
Old 03-09-2008, 03:39 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
ssh has one critical flaw: by default it will try less and less discriminating login-authentication mechanisms until it manages to secure a login. In other words, if public-key authentication fails it will degrade downward to a password-prompt unless you turn off that possibility. ("Only tryin' to please, ma'am... only tryin' to please.")

ssh does put diagnostic information into its logfiles, but this "try to please everybody everytime" behavior tends to make you forget to look there . . .
 
Old 03-10-2008, 04:11 PM   #5
cdaaawg
LQ Newbie
 
Registered: Apr 2007
Location: Tacoma, WA
Distribution: Ubuntu 7.10
Posts: 1

Original Poster
Rep: Reputation: 1
Thanks for the input, internetSurfer. I stumbled across that link while googling the problem. I was only gonna try that as a last resort as it pertains to w2k3 server, not wxp home. Have you tried this technique on winxp home?
 
Old 03-10-2008, 04:32 PM   #6
cdaaawg
LQ Newbie
 
Registered: Apr 2007
Location: Tacoma, WA
Distribution: Ubuntu 7.10
Posts: 1

Original Poster
Rep: Reputation: 1
Your advice is appreciated, sundialsvcs. I have experienced that exact behavior where ssh authentication 'falls through' to password authentication if it is not turned off in the sshd_config file. Disabling password authentication however does not make public key authentication work. I get the "Permission denied (publickey,keyboard-interactive)." message when disabling password authentication. Being fairly new to linux administration, I am not very well versed in deciphering verbose output from the shell command nor the log files applicable to ssh. I could, however post the output here if someone could help me interpret either the ssh verbose output or log file or both. I have learned that openssh file permissions can be a sticking point and since winxp makes it so difficult to change them (via safe mode only), then maybe I'll experiment on winxp pro. Thanks again, everyone, for the help and suggestions.
 
Old 03-10-2008, 04:38 PM   #7
cdaaawg
LQ Newbie
 
Registered: Apr 2007
Location: Tacoma, WA
Distribution: Ubuntu 7.10
Posts: 1

Original Poster
Rep: Reputation: 1
Thanks for the link to the doc, dxqcanada. I'll have a look. Just from the title it seems it may be of some help, as VNC over SSH is what I have been testing. I have got the tunneling part to work, which is great. I just hope the public key authentication can be made to work between linux and winxp home.
 
  


Reply



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
ssh public key authentication problem flgal3 Linux - Software 21 02-06-2009 11:15 AM
Public key authentication with ssh elnacho12 Linux - Networking 3 12-18-2007 08:38 AM
Public Key Authentication with SSH edafe Ubuntu 1 08-26-2006 11:06 AM
Can't use public key authentication with SSH Noob69 Linux - General 5 01-06-2006 06:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration