Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Problems with scp anyone knows?



On Fri, Jan 30, 2004 at 11:03:36AM +0900, Alessandro Mantelli wrote:
> Hello I would like to set the use of csp without the password prompt.
> If I use the following sentence:
> 
> scp /~/filename username@example.com:/tmp/
> it works but asks for a password.
> 
> Using the -B 
> scp -B /~/filename username@example.com:/tmp/
> option it should work automatically but I receive back:
> 
> Permission denied (publickey,password,keyboard-interactive).
> 
> I tried to change the settings of  /etc/ssh/ssh_config without any result.
> Moreover I have already looked for some clue on google
> without finding enough documentation.
> 
> Does anyone use scp and knows how to set it?

Josh uses different syntax that I've never gotten working correctly,
skipping a step I give here.

So, let's say your username is alex.  Logged in as alex on box 1.

ssh-keygen -t dsa

It does stuff.  You can accept the default place to save it
(/home/alex/.ssh/id_dsa and id_dsa.pub)
It'll ask for a password you hit enter to leave password blank.  
It'll ask for confirmation.

Now, scp that over to the other box--let's assume the username on the
other box is alex as well.

scp .ssh/id_dsa.pub 192.168.0.5:/home/alex   

Then, go over to box 2.

ssh 192.168.0.5

Once you're there, (on 192.168.0.5 in alex's home directory)

cat id_dsa.pub >> .ssh/authorized_keys

That should do it. 



IMPORTANT NOTE!!!!!!!!!!  DANGER!!!!


I only use this on a few boxes where I'm going back and forth on an
internal network and have no idea if there are major security
implications with this method.  




-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: We like to talk big... vampires do. 'I'm going to destroy 
the world.' That's just tough-guy talk. Strutting around with 
your friends over a pint of blood. The truth is, I _like_ this 
world. You've got...dog racing, Manchester United. And you've 
got people. Billions of people walking around like Happy Meals 
with legs. It's all right here. But then someone comes along 
with a vision. With a real... passion for destruction. Angel 
could pull it off. Good-bye, Picadilly. Farewell, 
Leicester-bloody-Square. 

Attachment: pgp00106.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links