LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SSh password with kdialog (https://www.linuxquestions.org/questions/linux-software-2/ssh-password-with-kdialog-443475/)

oTTo001 05-10-2006 10:17 AM

SSh password with kdialog
 
Hi !

I am trying to start licq from a remote machine on my local desktop using xhost and ssh.
I want to have a desktop shortcut for this, so I am trying to use kdialog for the password prompt.

Unfortunately, it doesn`t work. When I am starting my little script from a term, ssh prompts for the passphrase, when I am starting it using a desktop shortcut, nothing seems to happen...

This is my little script:

#! /bin/bash
xhost +remotehost
SSH_ASKPASS='/usr/bin/kdialog' # --password "Password fuer Zugriff auf remotehost"'
ssh -f remotehost 'export DISPLAY=192.168.0.3:0.0; licq' < '/usr/bin/kdialog' # --password "Password fuer Zugriff auf remotehost"'

The remote command runs perfectly, only the password makes problems....

Has anyone a hint for me ? This would be really appreciated !

Thanks in advance !

Otto

marozsas 05-10-2006 12:01 PM

My hint is not a solution but a workaround.

Instead to type the remote password for every site you want to connect by ssh, you may use an authentication based on your public keys.

Copy the contents of your .ssh/id_dsa.pub file in the source machine to .ssh/authorized_keys in the destination host. After that you can login in the remote machine without provide the remote password.

You still have to provide the pass phrase to unlock your local keyring. But this is done only one time. Read my post http://www.linuxquestions.org/questi...d.php?t=430362 about how to setup ssh-agent to ask the pass phrase at login time in FC5.

Doing so, you login in the graphical desktop, type your pass phrase and can use ssh to login in every remote host without typing passwords anymore.

jiml8 05-10-2006 09:57 PM

You also could set up an unencrypted private key, which would eliminate the password/passphrase situation entirely. This, however, represents a substantial security risk if for any reason someone else should get access to your computer.

oTTo001 05-11-2006 04:33 AM

Thanks for your hints! What I did not write is, that I am already using key-based authentication.
The passphrase-less authentication is not really what I am looking for (security and so on). And the workaround sounds good, but I am not really willing to enter a password every time I start X...
Maybe anyone has a solution using KDE`s kdewallet? I searched around the net for that, but I could not find anything useful :-((

I am really wondering why the ssh client does not have a command line option for a password...

Thanks in advance !

oTTo001 05-11-2006 08:15 AM

Hi again !

found a solution, namely kaskpass

http://www.kde-apps.org/content/show.php?content=31426

This is exactly, what I needed, works great !

Thanks anyway !


All times are GMT -5. The time now is 09:46 AM.