LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2007, 12:43 PM   #1
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Redirect Zenity input to ssh login


Hi

I'm trying to use my laptops hotkeys to mount my remote home-directory via shfs. Mounting the directory works perfect from the terminal, but it requires a password is entered. I could set up authentication keys and skip the password, but i prefer to keep it.

Code:
Password=`zenity --entry --text "Enter SSH Password:"`
shfsmount -p -P 22 user@main.dom.dk /mnt/remote
"the script waits for user input"
I don't know if it's possible to input the password since the script halts. But i hope some one have an idea.
 
Old 04-06-2007, 07:18 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Why not use ssh-agent?
 
Old 04-08-2007, 08:00 PM   #3
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by osor
Why not use ssh-agent?
That is a possibility. But wouldn't that give a open connection all the time, because ssh-agent loads with x or the same problem with collecting the password if ssh-agent is startet later? But I will set it up to see how it works.
 
  


Reply

Tags
ssh, zenity



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash input/output redirect problem greno Programming 2 12-31-2006 03:23 PM
Redirect /dev/ttyS0 input/output to tty2 Kymbo Linux - General 1 09-07-2006 10:07 AM
How to redirect txt file to password input? saravkrish Linux - General 3 04-01-2006 02:23 AM
How to redirect input in VC++ samirshah02 Conectiva 0 09-12-2004 10:51 PM
How to Redirect serial port input to a file Legaviu Linux - General 1 07-31-2001 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:57 PM.

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