XPRDsetsshcmd
XPRDsetsshcmd |
Purpose
Set the command to use for SSH connections.
Synopsis
int XPRDsetsshcmd(XPRDcontext ctx,const char *sshcmd);
Arguments
ctx
|
XPRD context
|
sshcmd
|
Command starting an SSH client connection
|
Return value
0 if successful, 1 otherwise.
Further information
This routine specifies which command to use for opening an SSH connection to a remote host as required by the
"xssh:" I/O driver. The provided string may contain the following special symbols that are replaced before the process is started:
- %h
- the target host
- %p
- port to connect to
- %f
- known host file (it is replaced by "-" when no file is provided)
Related topics