Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use Putty to connect to a host (via its IP) and enter my username and password.

The host always returns an Access Denied, though my password is correct.
Is this an issue I can fix within putty or is this something else ?

share|improve this question
    
Is the destination host Windows, Linux another OS? Do you have access to the destination host? Can you log on to the destination host normally and check that the SSH server is running, listening on the correct port (usually 22) and that your login has access to use SSH. It's possible that you have not been granted access via SSH if you don't manage the host. –  Enigman Sep 4 '13 at 0:26
    
@Enigman I'm on a windows system and I'm logged on to the correct server and it accepts my username. –  Amber Roxanna Sep 4 '13 at 0:29
    
Can you SSH/log in to the server from a different machine besides the Windows machine that fails? Also, how do you know the password is entered correctly? Maybe different keyboard mappings? –  ernie Sep 4 '13 at 0:36
    
I'd recommend enabling session logging on Putty and seeing what it actually reports as the log may report back what the server is replying back (credential issue/user rights etc.) As an example, in the Attachmate Reflection SSH server a user or group can be given access to connect via SSH and unless you or your group have been given specific access it will give an access denied. In earlier versions you also needed to have the "Log on Locally" right to be able to SSH. You might need to check the SSH server log at the other end to get more detail. –  Enigman Sep 4 '13 at 0:53

2 Answers 2

  1. You cannot ssh to a Windows machine, so I assume there is another problem. Have you tried using nmap? It comes with Linux by standard, but for Windows you'll need to download it: http://download.cnet.com/Online-Nmap-Port-Scan/3000-18510_4-75532036.html

The nmap results should show you the available ports open, I would start from there. Also, try to take in consideration a firewall rule - it can also block ssh access, the nmap would show that.

share|improve this answer

The "Access Denied" is usually due to wrong combination of username/password. Assuming you are connecting from Windows machine using Putty to a *nix server of some sort. (Please correct me if this assumption is wrong)

A few things that you can check (Sorry if I'm pointing out obvious things):

  1. Are you sure you got the correct username?
  2. Are you sure you got the correct password (with the correct capitalisation)?
  3. Is your account a valid, non-expired, not locked account on the remote server? (Confirm this with the server admin or other user who has access)
  4. Has your sys-admin changed something on the server end to prevent you from logging in (resetting your password without telling you, or set the server to only allow login using key rather than password - again check with your sysadmin)

Those are a few things I can think of for now.. I'll add more when I can think of more things to try.

Hope this helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.