Command Line Reference

Command Line Reference

addSSHKey

addSSHKey

Add SSH keys to
Managed File Transfer
, as well as associate them to a Web User, using the addSSHKey command.
To add public and private SSH keys, log in as a User with the Key Manager role.
To associate public SSH keys to a Web User, log in as a User with Web User Manager role.
Example 1:
The following command will add a public SSH key.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addsshkey -keyname sshkey123 -keytype public -inputFile c:\file.pub
Example 2:
The following command will add a private SSH key.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addsshkey -keyname sshkey123 -keytype private -inputFile c:\file.pvk -keyPassword keyp
Example 3:
The following command will associate an SSH key to a specified Web User.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addsshkey -keyname sshkey123 -username jsmith
Example 4:
The following command will add a public SSH key and associate it to a specified Web User.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addsshkey -keyname sshkey123 -inputFile c:\file.pub -username jsmith
Parameter Name
Description
Required?
Default Value
keyName
The name of the specified SSH key.
Yes
None
keyType
The type of SSH key, either public or private.
No
None
userName
The name of the Web User the key is being associated with.
No
None
keyPassword
The password used for the private key.
No
None
inputFile
The full path to the key file you are importing. The input file must exist on the machine where the Informatica MFT Command installation resides. The file is passed to Informatica MFT for importing.
No
None

0 COMMENTS

We’d like to hear from you!