Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>new to Tiger: ssh asks for s/key instead of regular password

new to Tiger: ssh asks for s/key instead of regular password

eridium
06-02-2005, 10:18 PM
I just switched to Tiger X.4.1 from Panther X.3.9 and am suddenly confronted with this annoying problem: When I ssh into one of my unix shell accounts at my university, I'm not allowed to type in my regular password even though it's a secure ssh connection. Instead I'm prompted for my s/key password, which I normally use only when I travel and have to s/key telnet to read email. I believe I have to teach my Tiger terminal to accept some sort of keychain for this server than I'm sshing into. Strangely, I don't have this problem with my other shell account ... and don't have this problem when I ssh into the same server from my other Mac, also running Tiger. How can I get back to using simple ssh and my regular password? Thanks in advance!

toppledwagon
06-08-2005, 11:59 AM
Ok, I'll bite. Note that I don't currently use s/key auth.

It sounds like your server is asking for s/key authentication over the ssh connection. Maybe the new ssh client in OSX supports s/key auth, or maybe it's higher on the list than before.

Try different settings for PreferredAuthentications in your ~/.ssh/config file.

Specifically, make a file named ~/.ssh/config (creating the .ssh directory, if it doesn't exist already.) Place the following line in it:
PreferredAuthentications publickey,password,keyboard-interactive,hostbased

Default is: hostbased,publickey,keyboard-interactive,password

I don't know if s/key is 'hostbased' or 'keyboard-interactive', so I put those on the end of the string.

man ssh_config for more details.

-Dave

eridium
06-08-2005, 12:30 PM
Ok, I'll bite. Note that I don't currently use s/key auth.

It sounds like your server is asking for s/key authentication over the ssh connection. Maybe the new ssh client in OSX supports s/key auth, or maybe it's higher on the list than before.

Try different settings for PreferredAuthentications in your ~/.ssh/config file.

Specifically, make a file named ~/.ssh/config (creating the .ssh directory, if it doesn't exist already.) Place the following line in it:
PreferredAuthentications publickey,password,keyboard-interactive,hostbased

Default is: hostbased,publickey,keyboard-interactive,password

I don't know if s/key is 'hostbased' or 'keyboard-interactive', so I put those on the end of the string.

man ssh_config for more details.

-Dave

Dave, you are awesome. With your help it took me 30 seconds to fix this. After all this time I didn't think anyone would respond to my question, so I'm doubly surprised to hear your suggestion ... which works perfectly. Thanks for teaching me something useful, and saving me from having to Enter through all those s/key requests.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

Check web page download times - use curl?
Automated smbfs mount with cron
deleting unix mail
lsof - List open *files*?
How Do I access my USB Drive
Restart Rendezvous only?
stop cron from sending mail

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics