How does passwordless SSH works in HPOO ??
Trying to understand how passwordless ssh shell and ssh command operations work in HPOO.
Server A is hpoo server and server B is remote server where i need to SSH to as some su user. What user on server A is actually perform SSH to server B ? I know Im able to connect because of keys present on both servers but i dont understand what happening in background when i run my flow from central or RAS.
The usernamed you passed in the ssh operation. Typically you have a service account. That service account is used to make the connection and run the command. In many of my own flows, that commands starts by "su"ing to a different user account who has the privelges neccessary to perfom the command.
Yes that user is on target server, i'm asking about the user on HPOO server ?
Trying to understand what exactly happens when i run my flow and flow reaches SSH command / SSH SHELL step. what user on HPOO server is performing the SSH to target server ?
You could try to reach here: https://github.com/CloudSlang/cs-actions/blob/cdc988fbd471f8a8d33ae730bbba48a9ad34c873/cs-ssh/src/main/java/io/cloudslang/content/ssh/services/actions/ScoreSSHShellCommand.java and investigate more.
As far as I remmeber you can use a private key file with no passphrase thus not provide any "password" input and it will allow you to connect, of course using the provided private key file.
I completely get the concept of keys and performing SSH. The thing i dont understand is ...
when u ssh from Server A to Server B, you should be running as some user a on server A. My question is simple here who is the user a when we execute flows and SSH from HPOO server to client
Check the user that is set on the Central or RAS service in the windows services or the user which started those processes on the linux machines.
> you can use a private key file with no passphrase
You can have a passphrase but you need something like pagent to remember it and each server needs to consult it.