so i'm trying to use array_name'left, array_name'right in this manner:
array_name'left xor array_name'right
but the compiler is telling me that xor can't accept the return type of the array attributes, which seems to be 'std.standard.integer', though the type of array i am using is just...
yea i guess, i just didnt want to mess with the expect stuff. to try to keep it Perl only. I just tried rsync -e ssh -r /source host:destination, and that seems to be working. So I'm gona try to modify the already existing scp expect script, and replace the scp with the rsync, and see what...
well the thing is, i have an expect script, that uses scp, sp I dont have to enter the password 50 times or however many computers there are on the network. The whole purpose is to push the authorized_keys through, so THEN I can use other scripts, to just ssh in and do things without a password...
So I'm trying to write a Perl script to transfer authorized_keys to all the computers on the network from a master computer, but I am having trouble. I'm trying to use scp to copy the whole directory like so:
scp -r ./keys/ $some_machine:/root/.ssh
objective: What I want to accomplish is to...
So I'm trying to write a Perl script to transfer authorized_keys to all the computers on the network from a master computer, but I am having trouble. I'm trying to use scp to copy the whole directory like so:
scp -r ./keys/ $some_machine:/root/.ssh
the thing is, the first time I run this...
wheres the edit button?
'Pseudo-terminal will not be because stdin is not a terminal'
should be
'Pseudo-terminal will not be <b>allocated</b> because stdin is not a terminal'
So i'm trying to automate input for SSH. I know I could do it with expect, or by havint authrized_key on all the machines, but I want to do it in another way if possible.
I'm trying to basicly do this:
ssh root\@$machine > file
but i'm getting this error:
'Pseudo-terminal will not be...
alright, the @ was the problem. I checked to see if $machine was null, but it was not, so I'm not sure why it still does a useradd automaticly on the local machine.
thanx for the help
I'm trying to write a perl script that ssh's into a bunch of machines from a list, and runs a useradd. I'm having trouble with it.
It seems to be adding the users just fine to the machines in the list, but it keeps printing out 'ssh: root: Name or service not known'.
Also it does useradd on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.