Permission Denied in SSH (Mac -> Ubuntu)

SpoonTech

Well-Known Member
Joined
Jan 19, 2011
Messages
360
Reaction score
0
Hi,

I am having issues doing a standard ssh login from my MacBook Pro into my Ubuntu 12.04 microserver.
In the terminal I typed:

Code:
ssh 192.168.0.69 -l HPServer
[email protected]'s password:

Lets say HPServers password is 123 for example. I enter that.
I just get this error:

Code:
Permission denied, please try again.

I have googled quite a bit with almost every forum post talking about the public keys. I am just trying a basic SSH login. Do I have to create an account or something in the server?
 
It is also possible that ssh for root is disabled.
So create a "normal" user on the HPServer, and try again.
 
You're using the machinename as a login name, it seems
You need a user account on the HPServer machine, and you need to ssh -l username 192.168.0.69
 
It is also possible that ssh for root is disabled.
So create a "normal" user on the HPServer, and try again.

This.

Or try from another non-Mac PC? Or, failing that, open a shell on the server, and see if you can SSH into the server from the server itself. If SSH still give you an error, it either is that root is not permitted to login, or that you need to check permissions...
 
You're using the machinename as a login name, it seems
You need a user account on the HPServer machine, and you need to ssh -l username 192.168.0.69

- The machine name is not HPServer
- There is a user on the machine called HPServer
- I am aware of case sensitivity
- HPServer is an administrator, but is not root. (ie. I need to use sudo for most commands)


I will try SSH into itself this evening and see what happens.
 
On the SSH server go to the the SSH config file.
/etc/ssh/sshd_config is the below setting set to no ?
PasswordAuthentication no

Try changing it to yes, (Backup the file before making changes)
then restart ssh, (Dont flame me : or just restart the whole server )
 
On the SSH server go to the the SSH config file.
/etc/ssh/sshd_config is the below setting set to no ?
PasswordAuthentication no

Try changing it to yes, (Backup the file before making changes)
then restart ssh, (Dont flame me : or just restart the whole server )

Password authentication is set to yes

Why don't you just set up auth via public key? Then you don't need to worry about pesky passwords.

Because I don't want anyone on my laptop to be able to access the server. I specifically want password access (for now)
 
I can SSH into the server from the server.
Seems like the issue is from the Mac OS side.
I will try putty on a Windows PC but only have mac's, no other linux PC's in the household
 
I managed to solve the problem:

When I login locally:
hpserver@HPServer:~$

When I login remotely with
ssh -l hpserver 192.168.0.69

[email protected]

Which I find quite strange because the top right corner of the server screen shows the login name as HPServer, with capitals. So i thought the system name was hpserver and the user name is HPServer. Can anyone explain this?
 
I managed to solve the problem:

When I login locally:
hpserver@HPServer:~$

When I login remotely with
ssh -l hpserver 192.168.0.69

[email protected]

Which I find quite strange because the top right corner of the server screen shows the login name as HPServer, with capitals. So i thought the system name was hpserver and the user name is HPServer. Can anyone explain this?

Don't know exactly what you are asking but the prompt will always be username@host. This is also how you ssh in to the box:

ssh user@host
 
Yeah don't know why you are complicating it with the -l.

Just use "ssh user@ipaddress" and put the password in.

With the latest update of Mountain Lion it seems you need to run ssh as a super user as well, but this is only when setting up ssh tunnels and such.
 
Yeah don't know why you are complicating it with the -l.

Just use "ssh user@ipaddress" and put the password in.

^this

I have this hobby:

ssh -vC user@remoteip

C - Compression
v - verbose

That way, if anything unusual occurs, you have some output which you can just highlight, go off and consult the oracle with :).
 
I managed to solve the problem:

When I login locally:
hpserver@HPServer:~$

When I login remotely with
ssh -l hpserver 192.168.0.69

[email protected]

Which I find quite strange because the top right corner of the server screen shows the login name as HPServer, with capitals. So i thought the system name was hpserver and the user name is HPServer. Can anyone explain this?

All Linux usernames are in lowercase. What the server was showing you is the Display name. If you look at the prompt above, it shows the username is all lowercase, and the machine name has uppercase lettering.
 
Top
Sign up to the MyBroadband newsletter
X