Re: non interactive sftp?
From: Peter Pentchev (firstname.lastname@example.org)
From: email@example.com (Peter Pentchev) Date: 16 Apr 2003 23:47:25 -0700
firstname.lastname@example.org (ColoC) wrote in message news:<email@example.com>...
> firstname.lastname@example.org (Peter Pentchev) wrote in message news:<email@example.com>...
> > "spanda" <firstname.lastname@example.org> 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.