BladeSystem - General
1748183 Members
3373 Online
108759 Solutions
New Discussion юеВ

Re: Authorized SSH keys on a C7000

 
SOLVED
Go to solution
Bert Neef
Occasional Contributor

Authorized SSH keys on a C7000

Hi,

I have a BladeSystem c7000 Onboard Administrator 2.02. When I try to add an authorized SSH key everything seems work well but when I try to login I keep getting prompted for the password. When I look at the authorized SSH keys I see:
Authorized SSH keys:
ssh-dss AAAAB3NzaC1kc3MAAACBAPDqSZ2GTU+z4mS0EN7BFE7maRVoNHqW0hMBIzQDJ+gRqBFZCZJqStXFtriovp1WLDwEiKMRBtLKMWRYvM3VjKv9U5xtyZN6B0np4TMQCpcDTmYj7Rct3pCoeUQ8COWjRjW7oGYQuvV1S67HOFpwtm2fTfqJGqQZUur8yqx0I5WDAAAAFQDU/u+GaKaPUXfgItRYR8SmwNfpNQAAAIBzYjvwyjTPEyjCD4tJQbHJ/SY8eI/JC5I0VfwruoByNwn2KdcLrieCwoCaqiiQMMVJB5fUd8z+k9Ozy9IHWOpskERUq8vxKzPOqLsecIKIv1jPw87Yn7MvzLaRRkJYp1D3AWS5Mfu2REnM7g7BrV0ph44bQaqjCt7CDeaYNJ749wAAAIBQM/rBCrxdCONZ8rwT5MI+Jkn7DOpSwHrTc0n3VI3q9/22E0a3jHgBEwT9zuhWaLZa0/7QQnjBy8/KAzKTG3N223/6n6lOB+yFTJDRO/AuMCuxf12SgyZmfElij8kvubUkkGq4QzArXcGZJGfkJvOs+DMl7TJxhhlvFYIEVJ1rBg== unixtc^

but when I try to login using the associated private key I am still prompted for my password. (there is a local user called unixtc on the enclosure)

Any ideas?
8 REPLIES 8
Raghuarch
Honored Contributor

Re: Authorized SSH keys on a C7000

Hi Neef,

your username is "unixtc" but in the Public key you have uploaded contains "^" at the end.

Try with a new Key ending with just User name.

Regards,
Raghuarch
Bert Neef
Occasional Contributor

Re: Authorized SSH keys on a C7000

With a bit of work we manage to remove the ^ and the key is now shown as :
ssh-dss AAAAB3NzaC1kc3MAAACBAPDqSZ2GTU+z4mS0EN7BFE7maRVoNHqW0hMBIzQDJ+gRqBFZCZJqStXFtriovp1WLDwEiKMRBtLKMWRYvM3VjKv9U5xtyZN6B0np4TMQCpcDTmYj7Rct3pCoeUQ8COWjRjW7oGYQuvV1S67HOFpwtm2fTfqJGqQZUur8yqx0I5WDAAAAFQDU/u+GaKaPUXfgItRYR8SmwNfpNQAAAIBzYjvwyjTPEyjCD4tJQbHJ/SY8eI/JC5I0VfwruoByNwn2KdcLrieCwoCaqiiQMMVJB5fUd8z+k9Ozy9IHWOpskERUq8vxKzPOqLsecIKIv1jPw87Yn7MvzLaRRkJYp1D3AWS5Mfu2REnM7g7BrV0ph44bQaqjCt7CDeaYNJ749wAAAIBQM/rBCrxdCONZ8rwT5MI+Jkn7DOpSwHrTc0n3VI3q9/22E0a3jHgBEwT9zuhWaLZa0/7QQnjBy8/KAzKTG3N223/6n6lOB+yFTJDRO/AuMCuxf12SgyZmfElij8kvubUkkGq4QzArXcGZJGfkJvOs+DMl7TJxhhlvFYIEVJ1rBg== unixtc

but still no luck. Any other ideas?
Raghuarch
Honored Contributor

Re: Authorized SSH keys on a C7000

Hi Neef,

Can you try with the different type of SSH key.
I use SSH-2RSA.
please refer to the attachment.

Regards,
Raghuarch

Raghuarch
Honored Contributor
Solution

Re: Authorized SSH keys on a C7000

Hi Neef,

The SSHkey user has to be always Administrator.
I just refer to the Help of the OA.

Regards,
Raghuarch
Bert Neef
Occasional Contributor

Re: Authorized SSH keys on a C7000

Didn't see that in the manual but I will try.
Raghuarch
Honored Contributor

Re: Authorized SSH keys on a C7000

Hi Neef,

Did it work?

Regards,
Raghuarch
vertisunix
Occasional Advisor

Re: Authorized SSH keys on a C7000

Hello,

Neef is a collegue of mine and is on holiday now. I tested for him. I managed to get it to work with both the dsa as the rsa key.

The trailing ^ remains to be shown, but that is no problem. I created the keys with:
ssh-keygen -t dsa -C 'Administrator' -f ~/.ssh/dsa_Admin
and
ssh-keygen -t rsa -C 'Administrator' -f ~/.ssh/rsa_Admin

Both keys work. Thanks for the suggestions and help.

Regards,
Dirk-Jan
Bert Neef
Occasional Contributor

Re: Authorized SSH keys on a C7000

As Dirk-Jan indicated using the Administrator account with the ssh keys worked.