Really nice trick !  Thx a ton for sharing that.

On Wed, Feb 16, 2011 at 20:03,  <[email protected]> wrote:
> If you are running karaf under Linux, there is a workaround for this that I
> use.
>
> 1) Create a linux user to log into the server with. I named mine "karaf"
> 2) Set the login shell of the karaf user to the karaf client in /etc/passwd.
> Mine looks like this,
> karaf:x:502:502::/home/karaf:/usr/local/apache-karaf/bin/client
> 3) Configure SSH RSA authentication for the karaf user. Google is very
> helpful for this.
>
> Then, using your RSA key, you can sign into the linux server, without a
> password, as the karaf user. Because the karaf client is configured as the
> karaf user's shell you land inside karaf, without a password, when you log
> in. When you log out of karaf the ssh session terminates and you never see
> the Linux shell.
>
> I use this approach and it works pretty well for me.
>
> -John
>
> Quoting Forrest Xia <[email protected]>:
>
>> Hi there,
>>
>> Is there a way to enable karaf sshd feature non-interactively login?
>>
>> Current karaf sshd feature allow user to login karaf shell via ssh client,
>> but it requires password to authenticate? Is there a way to make the
>> feature
>> like popular ssh server that authentication is via ssh certificate file,
>> no
>> password prompt?
>>
>> Caused we want to automate the testing of our self-defined shell commands.
>>
>> Thanks for any comments/idea in advance!
>>
>> Forrest
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to