[TriLUG] ssh question

Brian via TriLUG trilug at trilug.org
Mon Oct 24 12:06:00 EDT 2016


PPK ++.

I use this to great convenience with almost all of my ssh hosts around 
my network.  Seems like it would be a good fit for your situation, since 
it (in a sense) transfers the authentication to the client machine 
rather than the client user (machine's private key vs. user's password 
knowledge), and you've only got one client machine (the "another Pi") to 
worry about.

Run ssh-keygen on "another Pi", specify an empty password, and put the 
public key in the presenting Pi's /home/pi/.ssh/authorized_keys file. 
Then set the client Pi's .ssh/config to automatically use the PPK pair 
to log in.  Example config on the client:

Host presenterpi
	IdentifyFile ~/.ssh/id_rsa

(using the default file name)

Cheers,
-Brian

On 10/24/2016 11:39 AM, Warren Myers via TriLUG wrote:
> Why not use pre-shared keys?
>
> On Mon, Oct 24, 2016 at 11:31 AM, Grawburg via TriLUG <trilug at trilug.org>
> wrote:
>
>> I have small project that requires me to log into a Raspberry Pi a few
>> floors away using ssh. Security is NOT a consideration in anyway, shape, or
>> form.
>> The Pi uses the default password, raspberry - I have no need to change it.
>> The script I will write is going on another Pi that one other person will
>> use to start an application on the remote Pi. (That Pi will run PiPresents
>> to start a presentation on a large monitor.)
>> I can't seem to find an easy way to get the script to automatically supply
>> the password.  Of course, it's no big thing for the guy to remember what
>> the password is, but I want to make the script all-encompassing so it will
>> change to the correct directory and then start the program rather than
>> needing to have two scripts.
>>
>> Thanks,
>> Brian Grawburg
>> Wilson
>>
>> --
>> [This was sent from a PC running Debian 7, 64-bit Linux. No Microsoft
>> products were used.]
>>
>>
>>
>>
>> --
>> This message was sent to: Warren <volcimaster at gmail.com>
>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
>> address.
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/
>> options/trilug/volcimaster%40gmail.com
>> Welcome to TriLUG: http://trilug.org/welcome
>
>
>
>



More information about the TriLUG mailing list