Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-10-2006, 10:17 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
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=; 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 !

Old 05-10-2006, 12:01 PM   #2
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,491
Blog Entries: 2

Rep: Reputation: 68
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/ 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 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.
Old 05-10-2006, 09:57 PM   #3
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
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.
Old 05-11-2006, 04:33 AM   #4
LQ Newbie
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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 !
Old 05-11-2006, 08:15 AM   #5
LQ Newbie
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi again !

found a solution, namely kaskpass

This is exactly, what I needed, works great !

Thanks anyway !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kdialog --menu command tardigrade Programming 2 01-17-2006 01:37 PM
How to show a variable menu list in Kdialog? linx win Debian 1 11-26-2005 10:33 AM
kdialog replacement Khabi Linux - Software 2 04-09-2005 01:10 AM
Variable info in kdialog? Klas Programming 1 01-08-2005 08:58 AM
ssh password ssudhi Linux - Newbie 6 05-13-2004 09:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration