Saturday, December 28, 2019

server - Need run scripts as different users on same host to different hosts without password prompt

I need to run scripts with different linux users on same host to different hosts without password prompt. In other words, the deferent users are on a source host able to login (ssh/scp/other shell scripts) to other hosts without password prompt.


The following is example:


hostA-user1, hostA-user2, hostA-user3 … on hostA: able to execute shell “uname –a” on hostB and hostC


hosts-user as a common user on hostB which allows others user login from different hosts.
hosts-user as a common user on hostC, hostD and etc. which allows others user login from different hosts.


But I do not want setup ~/.ssh/authorized_keys on hostB, hostC and etc. for each users on hostA and do not want users:hostA-user* to get password prompt when login and/or run scripts from hostA. Any option to do so? Thanks in advance.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...