Unable to establish ssh session User impersonation fails

Document ID : KB000102906
Last Modified Date : 21/06/2018
Show Technical Document Details
Issue:
User impersonation fails with error message

"(com.nolio.platform.shared.parameter.InParameterPlaceHolder:170) - PlaceHolder for field [evaluationResult] got value [Step Result: false - Error occurred during action execution under USERX credentials(Cannot create process - Unable to establish SSH session/channel, java.net.ConnectException: Connection refused (Connection refused), Connection refused (Connection refused), ).]" 
Environment:
CA Release Automation 6.5
Cause:
The SSH PORT is modified,  The SSH uses 22 port by default.
Resolution:
Perform following changes on the target server 

Edit  file processes.properties at location <RA_Agent>/conf/
Change the port number from 22 to  modified SSH PORT on target
eg: ssh.port= <modified port no>
Check the permission of <RA_Agent_Installation_directory> whether the deployment user(i.e.  impersonation user) have access to this folder.
Restart the agent