Re: Non-interactive SSH Login.
From: Alex (alex.ferguson@NOSPAMdartmouth.edu)
Date: 04/23/03
- Next message: Sebastian Schack: "Disallow users to login via ssh?"
- Previous message: Glen: "SSH and remote commands"
- In reply to: ColoC: "Non-interactive SSH Login."
- Next in thread: ColoC: "Re: Non-interactive SSH Login."
- Reply: ColoC: "Re: Non-interactive SSH Login."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Sebastian Schack: "Disallow users to login via ssh?"
- Previous message: Glen: "SSH and remote commands"
- In reply to: ColoC: "Non-interactive SSH Login."
- Next in thread: ColoC: "Re: Non-interactive SSH Login."
- Reply: ColoC: "Re: Non-interactive SSH Login."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|