Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently had an issue where I could no longer su to root when logged into an SSH session using Putty on a windows box. I could login using my username and password, but when I entered the root password after typing the 'su' command I got authentication failure. The wiered thing was that if I SSH'd from a linux box it all worked perfectly, including su'ing to root.
I now have a problem using Putty to login using my own username and password. This was all working perfectly until I changed my password. As soon as I changed my password I could no longer login via an ssh session. I can login locally so I know my credentials are correct, but I cannot log in using an SSH session. Putty gives me an 'access denied' message.
I should also mention that this all still works great when establishing an ssh connection from a linux box. The only time I get issues is when ssh'ing from any Windows box running any ssh client (I've tried several).
Can anyone help me?
Many thanks,
CR.
Last edited by CaptainReboot; 03-11-2008 at 03:39 PM.
I get issues is when ssh'ing from any Windows box running any ssh client (I've tried several).
Errrr, complain to Microsoft?
Quote:
Can anyone help me?
Dump the windows boxes if they don't work as advertised?
Seriously though:
Check your /etc/ssh/ssh_config
/etc/ssh/sshd_config
Maybe there is something in there that is not allowing access from your win machines (I no longer use them, so can't help from that end )
Seriously though:
Check your /etc/ssh/ssh_config
/etc/ssh/sshd_config
Maybe there is something in there that is not allowing access from your win machines (I no longer use them, so can't help from that end )
I can't see anything obvious in there. I'm a bit confused as to why it would fail only after a password change and only on Windows SSH clients. Very strange!
Try connecting without using a stored profile if you use stored profiles in putty - perhaps connect to the IP rather than hostname. Mix it up a bit.
I've been trying different settings within putty and I've just downloaded the latest version. I've also tried connecting using the IP address instead of the hostname, nothing has worked.
It must be a problem with the users I have setup. The fault seems to occur after a password change. There are a couple of other users configured which are still working fine.
I should also mention that this all still works great when establishing an ssh connection from a linux box. The only time I get issues is when ssh'ing from any Windows box running any ssh client (I've tried several).
If this is on your debian box, check /var/log/auth.log for clues about why authentication is failing. My guess is the Windows client is doing something strange (e.g.: requiring protocol 1 or similar nonsense).
Let's start with where you changed your password. On your win Pc or linux Pc? I don't think you have made this clear. Where did you change your password? Why did you change your password? How did you change it?
You need to be methodical: try changing your password back to what it was. Any better?
You haven't told us about where you are trying to connect to with "putty" - is it on your personal LAN or over the internet?
You are not giving us any error messages (Eg "win says this ...., but linux says this ..."). Win tends to say nothing useful (and not work), and linux tends to say "Authentication refused because ..." which gives you a starting point for troubleshooting.
Linux's error messages tend to be specific, to the point, informative (and terse ). Please post them.
If you were trying to ssh from a linux box, I'd recommend you try a ssh -vv user@hostname the -vv option is for "very verbose", and it'll tell you exactly what it is trying to do, and what, if anything, is failing, I am not sure "putty" offers this option, but it is worth a try.
Do you have firewalls on any of these machines? What are they, and how are they configured?
Please start by composing a post to LQ, offline, always asking yourself "Have I left any information out?". If so, research it, and then include it.
I have in the past been presented with linux problems that I thought I couldn't solve. So I slowly generated a Q for LQ in my text-editor. By the time I thought I had answered all the potential "Idiot: you stupidly omitted to check if ..." replies, and was ready to post it, I had solved the problem for myself YMMV
We are still here to help you (though I can no longer help with windows things, I abandoned that at win98 )
Well, I think we have to go back to basics.
Let's start with where you changed your password. On your win Pc or linux Pc? I don't think you have made this clear. Where did you change your password?
Within my SSH session.
Quote:
Originally Posted by tredegar
Why did you change your password? How did you change it?
Because I hadn't changed it in a while. I changed it by typing 'passwd'
Quote:
Originally Posted by tredegar
You need to be methodical: try changing your password back to what it was. Any better?
I've tried that already. Unfortunately it didn't work.
Quote:
Originally Posted by tredegar
You haven't told us about where you are trying to connect to with "putty" - is it on your personal LAN or over the internet?
On my LAN.
Quote:
Originally Posted by tredegar
You are not giving us any error messages (Eg "win says this ...., but linux says this ..."). Win tends to say nothing useful (and not work), and linux tends to say "Authentication refused because ..." which gives you a starting point for troubleshooting.
Linux's error messages tend to be specific, to the point, informative (and terse ). Please post them.
Putty just reports 'Access Denied' when I login using the username and password I always use when logging in locally.
Quote:
Originally Posted by tredegar
If you were trying to ssh from a linux box, I'd recommend you try a ssh -vv user@hostname the -vv option is for "very verbose", and it'll tell you exactly what it is trying to do, and what, if anything, is failing, I am not sure "putty" offers this option, but it is worth a try.
I haven't tried this from a Linux box as the fault doesn't occur in this case, but I will try it. Like you, I'm not sure if Putty has this capability. I'll check.
Quote:
Originally Posted by tredegar
Do you have firewalls on any of these machines? What are they, and how are they configured?
Yes, but I switched them off to check whether these were causing the problem.
Quote:
Originally Posted by tredegar
Please start by composing a post to LQ, offline, always asking yourself "Have I left any information out?". If so, research it, and then include it.
Will do.
Quote:
Originally Posted by tredegar
We are still here to help you (though I can no longer help with windows things, I abandoned that at win98 )
I'm trying this from my company issue laptop. Unfortunately they aren't as keen on Linux as me!
I'm fairly confident that my user and the root user are broken in some way. To test I'll create a new user and login. After this I'll change the password and see if it breaks. I'll also try SSH'ing to another box to see if I get similar results. I'm also going to check the logs on the Debian box I'm trying to ssh into.
I think I know what the problem is. It seems that the problem occurs from Windows clients when the password contains a '£' symbol. Any user with a '£' within their password has this problem.
I can now confirm this was definately the case. To resolve the problem I had to login locally and change any passwords which contained the '£' symbol even though all systems have the UK keyboard layout and the '£' symbol (shift 3) is in the correct place all the time.
There is something in the Windows SSH clients that doesn't like the '£' sign. So far I have not found any other symbols which cause any problems. Would someone be willing to test this on their systems to see if it is something particular to my setup?
There is something in the Windows SSH clients that doesn't like the '£' sign.
Hmmmm. I probably don't have the answer you'd like, but here are some pointers:
When I used to use win98, and did an internet search, and clicked on links, sometimes I'd end up somewhere where the characters wouldn't render in my browser - I just got little "squares". So I thought, OK, foreign script, it will not render, and I probably cannot read it, so move on to the next link.
When I moved to linux, these sites would be beautifully rendered in their proper fonts - Thai, korean, chinese, whatever. I still couldn't read them, but they were properly rendered for me, and if I had a Thai friend to hand to read and translate them for me they probably would have been useful.
The bottom line is that linux's internationalisation ( i18n for short: that's an "i" then 18 letters then an "n", and a pain to type otherwise) just works. Win, or putty, seems to be broken when it comes to "strange characters". But I wouldn't have thought that £ was that strange - it's in the plain 8-bit ASCII table, unlike the € symbol which is properly rendered on this (linux-driven) board. Along with a load of chinese, russian and many other character sets, but I'll resist the temptation to post examples, in case I inadvertently say something rude.
Weird, but I am glad you have (sort of) solved your problem.
[Edit]:
Quote:
There is something in the Windows SSH clients that doesn't like the '£' sign. So far I have not found any other symbols which cause any problems.
How about the # | or @ signs - do they cause problems?
[/Edit]
Last edited by tredegar; 03-13-2008 at 05:51 PM.
Reason: See tags
It's been a while since I dealt with MS, but iirc, there was definitely >1 place where you could set the default 'nationality', inc some apps had their own separate setting.
MS usually defaults to USA, given half a chance...
Everything seems to be set to UK, and when I type a £ on the SSH session a £ sign appears.
It's very wiered and I'll keep searching for an answer. I can tell you that I have tested the following symbols and they work -- # $ % * % -- it just seems to be the £ sign I'm having problems.
It doesn't matter too much. I'll just steer clear of that symbol in any passwords.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.