Command Line Reference

Command Line Reference

removeSSHKey

removeSSHKey

Remove SSH keys from
Managed File Transfer
, as well as remove them from a Web User, using the removeSSHKey command.
To remove public and private SSH keys, log in as a User with the Key Manager role.
To remove a public SSH key association from a Web User, log in as a User with Web User Manager role.
Example 1:
The following command removes the public and private versions of a specified SSH key. The public and private keys well be removed from all associated Web Users.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator -command removesshkey -keyname sshkey123
Example 2:
The following command removes a public SSH key. The public key will be removed from all associated Web Users.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator -command removesshkey -keyname sshkey123 -keytype public
Example 3:
The following command removes a private SSH key.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator -command removesshkey -keyname sshkey123 -keytype private
Example 4:
The following command will remove a public SSH key association from a specified Web User.
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator -command removesshkey -keyname sshkey123 -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 removed from.
No
None

0 COMMENTS

We’d like to hear from you!