Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Using ssh in script - how to enter password

Using ssh in script - how to enter password
Thread Tools
Professional Poster
Join Date: Dec 2001
Location: somewhere
Status: Offline
Reply With Quote
Aug 21, 2003, 09:03 PM
 
I have X11 installed and working. I can ssh to my linux box and run X11 programs. That's great. I really want to be able to create a script that runs ssh and launches the app, so I can add it to the X11 menu. I can't figure any way to pass in the password to ssh.

I've tried using identity files (ssh-keygen -t dsa). I've done this on both machines and copied the id_dsa.pub files to the opposite machines. I can't get the identity files working.

I'm currently compiling expect in fink, so maybe that will help.
     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Aug 21, 2003, 09:05 PM
 
The remote machine needs the public key to be in ~/.ssh/authorized_keys. The .ssh directory must not be world or group writable.

- proton
     
Professional Poster
Join Date: Dec 2001
Location: somewhere
Status: Offline
Reply With Quote
Aug 22, 2003, 05:46 PM
 
It started working. It seems like it didn't work until I tried it in a new terminal window.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:22 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2