Re: non interactive sftp?
From: Peter Pentchev (email@example.com)
From: firstname.lastname@example.org (Peter Pentchev) Date: 16 Apr 2003 23:47:25 -0700
email@example.com (ColoC) wrote in message news:<firstname.lastname@example.org>...
> email@example.com (Peter Pentchev) wrote in message news:<firstname.lastname@example.org>...
> > "spanda" <email@example.com> wrote in message news:<1050465873.902426@sj-nntpcache-3>...
> > > Hi,
> > >
> > > How can I do a non-interactive file transfer through sftp?
> > > i.e without using password autentication.
> > >
> > > ( As we use "ssh -i <key> " option for passwordless access to the remote
> > > host )
> > [roam@straylight:p3 ~]$ sftp -o 'IdentityFile /home/roam/.ssh/id-online' localhost
> > Connecting to localhost...
> > sftp>
> Please describe in detail where should I find (as most commonly put)
> the 'IdentityFile /home/roam/.ssh/id-online' information? I mean maybe
> my admin did not configure it well enough, I can't find the id
The original poster mentioned "ssh -i <key>". Take a look at
the ssh-keygen manual page, and at the answer to the 'How do I arrange
to log in without typing a password or passphrase?' question in
the FAQ at http://www.snailbook.com/faq/. The ~/.ssh/ directory is
where OpenSSH keeps all its per-user configuration by default,
including the keys, and ~/.ssh/id-online is simply my private key for
logging into a certain set of machines.