Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- scp should fail if not without a password
- Thomas Guettler
April 7, 2004, 2:59 pm
rate this thread
I try to let scp fail if it can't copy
without a password:
scp -o 'BatchMode yes' -BCq fooserver:.bashrc tmp/
Enter passphrase for key '/home/me/.ssh/id_rsa':
But I still get asked for my passphrase.
I call scp from a script with popen. The scp
command should fail if it can't to it without a
password. Any hints?
===> ssh -V
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090609f
Re: scp should fail if not without a password
It works OK for me with 3.5p1 (RH9) and 3.8p1.
$ ssh -V
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
$ scp -o 'BatchMode yes' -BCq localhost:.bashrc tmp/
Permission denied (publickey,password).
$ scp -Cq localhost:.bashrc tmp/
Enter passphrase for key '/home/testuser/.ssh/id_rsa':
What OS, where did ssh come from (OS package, self-built)?
Any entries for "fooserver" in $HOME/.ssh/config or ssh_config?
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- » PuTTY 0.54 is released: SFTP UNIX port supports reput/reget?
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum