Re: Non-interactive SSH Login.

From: Alex (alex.ferguson@NOSPAMdartmouth.edu)
Date: 04/23/03


From: "Alex" <alex.ferguson@NOSPAMdartmouth.edu>
Date: Wed, 23 Apr 2003 15:16:52 -0400

On 23 Apr 2003 08:25:24 -0700
colocoloc@yahoo.com (ColoC) wrote:

> Hi, I have reviewed OpenSSH manpages ( SSH(1), SSH-KEYGEN(1),
> SSH-AGENT(1), SSH-ADD(1), SSH_CONFIG(5) and SFTP(1) ), and I tried
> many times myself for non-interactive SSH login.
>
> What I did is like:
>
> mysh> ssh-keygen -t rsa
>
> Then the id file is written to "~/mydir/id_rsa" , in which I set my
> passphrase to be empty. Now I have my configuration file ("
> ~/mydir/ssh_config" ) is as follows:
>
> BatchMode yes
> IdentityFile ~/mydir/id_rsa
> Protocol 2
>
> Then I tried:
>
> mysh> ssh -F ~/mydir/ssh_config myuser@127.0.0.1
>
> And I got the following output:
>
> Permission denied (publickey,password,keyboard-interactive).
>
> Does this mean that my admin has installed and configured the ssh
> applications in such a way that only "
> (publickey,password,keyboard-interactive) " is allowed? (I am sorry I
> can't catch the admin, who is very busy.)
>
> And of course I tried:
>
> mysh> sftp -o 'IdentifyFile ~/mydir/id_rsa' myuser@127.0.0.1
>
> And I got the following output:
>
> myuser@127.0.0.1's passsword:
>
> which of course shows the failure of my non-interactive sftp.
>
> Can someone help me out of there?
>
> ColoC

Did you remember to put your public key, probably called id_rsa.pub, in ~/.ssh/authorized_keys ? Also, things will generally work more smoothly if you move your ssh_config to ~/.ssh/config and your private key to ~/.ssh/id_rsa.

--Alex

-- 
PGP/GPG key id 848C80EF available at wwwkeys.pgp.net


Relevant Pages

  • Non-interactive SSH Login.
    ... many times myself for non-interactive SSH login. ... passphrase to be empty. ... Now I have my configuration file (" ... Does this mean that my admin has installed and configured the ssh ...
    (comp.security.ssh)
  • SMC7004VWBR / SMC7008ABR "spoofing" vulnerability.
    ... When you visit a page other than the index, the router ONLY checks your ... IP to see if you are the admin (9 or 10 minutes timeout is a very long ... Open the configuration file you received with your ... The vendor responded positive to this and promised to provide a fix on ...
    (Bugtraq)
  • Re: ADAMSync Issues.
    ... on 4) Domain Users is a group it is possible to do an initial sync based on ... The ID is use is not a full admin ID. ... Saved configuration file. ... Populating the schema cache ...
    (microsoft.public.windows.server.active_directory)
  • Re: HP Commands
    ... > I need some good site to tell you about some of the general sys admin site. ... Another suggestion is the http://docs.hp.com web site. ... ifconfigshows/configures network interfaces. ... /etc/rc.config.d/netconf is the configuration file for the network ...
    (comp.sys.hp.hpux)
  • Re: administrator priveliges
    ... Do what Mike suggested and right click to run the first time in case it ... needs first time admin privs to write some configuration file. ...
    (microsoft.public.windows.vista.general)