Re: non interactive sftp?

From: Peter Pentchev (roam@ringlet.net)
Date: 04/17/03

  • Next message: SZE-HUN: "To limit the user"
    From: roam@ringlet.net (Peter Pentchev)
    Date: 16 Apr 2003 23:47:25 -0700
    
    

    colocoloc@yahoo.com (ColoC) wrote in message news:<96fc2618.0304160753.19ccd621@posting.google.com>...
    > roam@ringlet.net (Peter Pentchev) wrote in message news:<7d3fd083.0304160054.2015253@posting.google.com>...
    > > "spanda" <spanda@cisco.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 )
    [snip]
    > >
    > > [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
    > anywhere.

    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.

    G'luck,
    Peter


  • Next message: SZE-HUN: "To limit the user"