[kde-linux] Starting ssh at log-in

Boyan Tabakov blade.alslayer at gmail.com
Tue Nov 21 10:58:35 UTC 2006

On 21.11.2006 12:18, Anne Wilson wrote:
> On Monday 20 November 2006 20:38, Boyan Tabakov wrote:
> > If the machine from which you initiate your backup (e.g. your private
> > machine) is secure enough, yes, I would definitely recommend that you use
> > a public key authentication method to log to the remote machine. This
> > will make the hole process automatic and you won't be asked to enter any
> > password.
> >
> > To enable public key authentication, you should simple copy your ssh
> > client's public key to the ~/.ssh/authorized_keys file on your remote
> > machine. Your public key can be found in ~/.ssh/id_dsa.pub or
> > ~/.ssh/id_rsa.pub files (depending on the algorithm). If no keys are
> > already generated, do so with the ssh-keygen command (simply 'ssh-keygen
> > -t [rsa|dsa]). Remember not to enter a passphrase, because if one is
> > present you will be prompted to enter it to unlock the key and not doing
> > this was the very reason we began with.
> No, that's a misunderstanding.  I do want to have to give the passphrase. 
> I just want to be asked for it as early as possible, rather than on me
> remembering to open a konsole.

Well then, it sounds to me that a saved konsole session (I mean a session 
settings for konsole itself and not a kde session) should do the job for you.

Launch Konsole, go to Settings->Configure Konsole->Session Tab and create a 
new session with the Execute field containing the invocation of your script, 
e.g. 'ssh user at host some-command'
Save the session and then in ~/.kde/Autostart add the following script:


konsole --type 'My Saved Session Name'

If you don't want to save a special session for that, you can skip that step 
and just have the script:


konsole -e 'your command goes here'

This should open a konsole window and execute what you need each time you 
start KDE.

Blade hails you...

It's the honesty of these worlds
Ruled by magic and mighty swords
That makes my soul long for the past
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20061121/9357fc49/attachment.sig>

More information about the kde-linux mailing list