Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gyrex-dev] Access OSGI console via SSH

Am 23.04.2013 16:59, schrieb Matteo Cusmai:
1) created the folder "etc/.ssh" under <GYREX_HOME>/workspace
2) created an authorized_keys file under that folder
3) created a ssh-key with ssh-keygen (without pass phrase)

That seems about right.

4) put the .pub file content in authorized_keys file

So within the file there should be just one line like this:

ssh-rsa ABCD....very-long-string.... mykex

Depending on your key type it might actually start with "ssh-dsa" (I think).

5) put the private file in ./ssh folder under my home.

Is it named "id_rsa" or "id_dsa"? I think the name has to be like this if you don't specify the exact name to the key file somewhere.

Oh and the folder should also be ".ssh" (not "./ssh") and it and the files within need proper permissions (only you as the owner and no-one else).

6) try to connect by using: ssh ubuntu@localhost -p 3122

That should work.

Here is another thing how you can test the key. Simply put the 'authorized_keys' file under "~/.ssh" as well and try to login to you localhost. If that works then the key setup is basically correct.

-Gunnar


--
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx
http://wagenknecht.org/


Back to the top