creating multiple user in multiple linux boxes from single remote host
Hi,
I have 30 remote hosts. I use to use ssh to login remotely to those linux servers. Now i need to create an extra username and password to all of those 30 hosts. Manually it takes time to login each host and creating username and password. I need to ask is there any tool so that i can create username and password in those required 30 hosts at a time from my remote pc ? Or is there any fruitful solution available ? |
Quote:
From the command line, you can do: Code:
ssh <user>@<remote system> "sudo useradd -c comment -m -d /home/username -p <encrypted password from above>" |
Quote:
Thanks for the info....Actually i want to create username and password to 30 remote hosts. each host contains different ip. i want to create for example user: linux and password: 12 to those 30 hosts at a time ... Is it possible without creating the username and password manually ? |
Quote:
Again, put the command into a script to loop through all 30 addresses/names, and execute it. That's it. I'm still confused, though, since you could have easily created all the users manually in far less time than it took to post the question and follow-up here. |
All times are GMT -5. The time now is 11:17 AM. |