Colleagues
Many thanks to all of you who responded!
It is possible to get sftp, ssh, scp to work without a password
(passphrase) input. Using ssh_keygen you just generate the files
id_rsa, id_rsa.pub (or rda depending on version of ssh), authorized
_keys2, authorized_keys2.pub, and known_hosts. When you are prompted
for a passphrase just hit return key. This produces a null
passphrase. Be aware of the security (lack of ) implications of
doing this. The .pub files go in the system ssh directory (/etc/ssh)
on the local and remote hosts. The other files go in the users ~.ssh
directory on the local and remote hosts. So these files are
generated on one host and then transferred to the other host. When
you then first use this setup you will be prompted for permission to
access the remote host. Answer "yes". This will generate the
appropriate known_hosts file.
It works. However, I cannot get it to do this from a shell script.
It works only on the command line.
Colleagues
I hope some of you can help me with the following problem.
Background: We are using VNMR on SUN hosts running Solaris9. For
more than 15 years we have had our users launch a Magical shell
script (tomac) to create a tar file. It also does ftp data transfer
in the background for archiving on remote Macintosh computers. The
users just type tomac on the VNMR command line and then enters a file
name. The process uses .netrc which contains the remote password.
So, the user does not know the password on the archiving host. Of
course ftp has huge security problems. So, I am trying to create a
similar process using sftp. I have tried to do this using SUN's
Solaris9 ssh-keygen, ssh-agent, ssh-add, etc. I have tried
"passwordless" sftp setups I have found on websites. This
description is improper. They don't require your normal password,
but they do require a new "passphrase" (ie a new password).
My question: Help?! Do any of you have some expertise you can
share to get sftp/ssh to work in such a fashion as I described above.
That is, sftp launched with a Magical shell script and have the
password/passphrase entered in the background.
I will post any solutions to this problem.
Regards.
Joseph Vaughn
--
Dr. Joseph Vaughn
NMR Facility Associate Director
Department of Chemistry and Biochemistry
Florida State University
Tallahassee, FL 32306-4390
850-644-3334 Phone
850-644-8281 Fax
vaughn_at_chem.fsu.edu
Received on Thu Oct 27 2005 - 15:54:28 MST