Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use Platypus to create apps from scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Platypus to create apps from scripts
Authored by: monickels on Nov 12, '04 11:42:06AM

How does it handle the password prompt for the SSH connection?



[ Reply to This | # ]
Use Platypus to create apps from scripts
Authored by: trece on Nov 12, '04 12:18:24PM

it doesn't... probably Tiger has setup a public key login, so there is no need for a password prompt at all [assuming he didn't assign a password to the key pair].

ssh first checks for public key atentication [sp?] and tries other login methods...the last one is a password prompt.

still im new to ssh...could be wrong...



[ Reply to This | # ]
creating a public key for ssh and other things
Authored by: nvdingo on Nov 12, '04 12:41:19PM

Doesn't have to be tiger.

Here is the short and simple for creating a public key

1. on your local computer, open a terminal
2. type `ssh-keygen -t rsa`
3. the following prompt comes up:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/<youruserid>/.ssh/id_rsa):
4. accept the default (it's in your home directory)
5. leave passphrase field blank twice
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
6. you will get something similar to the following output
Your identification has been saved in /home/<youruserid>/.ssh/id_rsa.
Your public key has been saved in /home/<youruserid>/.ssh/id_rsa.pub.
The key fingerprint is:
a6:ca:aa:c7:fb:db:93:77:1d:da:07:c1:99:7c:3f:db <youruserid>@yourcomputer.com

7. This has created a directory, in your home directory named '.ssh'
8. `cd .ssh`
9. `cat *.pub`
This will print to the terminal the contents of your public key.
This is what you want to put on any remote server that you want passwordless login to.
10. copy the output
11. login to the remote server
12. if the .ssh dir does not exist in your home directory on the remote server, create it.
13. type the following:

echo '<use the paste command here>' >> authorized_keys

14. you should have pasted the previously copied contents in between the single quotes.
15. logout, and try logging back in. it should not ask you for a password.
16. if you have a newer system, you might need an authorized_keys2 file

In summary, for all systems that you want to login to , you copy the contents of ~/.ssh/id_rsa.pub into the authorized_keys file

the authorized_keys file can contain multiple keys, so that you can login to it from many different systems.

While you can copy the .pub file to many different systems, i recommend that you do NOT copy the private key (id_rsa) to any other system

on any system that you are going to login FROM, create a key, and copy the public key (.pub) to the systems you are going to login TO.

and yes i know you can do some of this in a more streamlined manner, but this explains exactly what is going on, and what goes where.



[ Reply to This | # ]
creating a public key for ssh and other things
Authored by: trece on Nov 12, '04 02:52:50PM

i meant Tiger the guy that posted the hint... not the OS. Sorry if that caused some kind of mixup...later.



[ Reply to This | # ]