Why ssh-copy-id still needs password when using cloth

I have installed env.user and env.password, but when I use:

run('ssh-copy-id -i $HOME/.ssh/id_rsa.pub server1')

      

it still asks me for a password, why?

+3


source to share


1 answer


env.user

and env.password

are used to ssh on the remote server and then run the command internally run ()

on the remote server.

They are not used for the most remote command (running on a remote server).



So, ssh-copy-id

doesn't know anything about user or password.

If this is not what you mean, I would suggest you edit the question and make things clearer, for example, provide more context for what you are trying to accomplish: inserting a function that contains this "trigger", for example.

+1


source







All Articles