I am trying to login to another system via ssh like sshpass -p 'password' ssh username@IP-ADDRESS 'bash -s'
I login into the system and I trying to create the user in that system .I want to execute the script which takes argument from the script where sshlogin is written. For testing I am trying to create directory in that system.Directory is created ,but when I am trying to create user ,in my system ,user is created. sshpass -p 'password' ssh username@IP-ADDRESS 'bash -s'< /home/username/Desktop/abc.sh $username In abc.sh only mkdir $1 is there. sshpass -p 'password' ssh username@IP-ADDRESS 'bash -s' ' sh -s $1 $2 ' < echo "123" | sudo -s /home/murk/Desktop/adduser.sh $username $password In aduser.sh ,user creation script is there .help me on this .get stuck here now..reply as ASAP -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
