Activation of SSH public key with c_AddUser() usage
Posted: Wed Aug 07, 2013 10:14 am
Hello,
I am trying to create an user on Wing FTP Server with c_AddUser(...) trougth API REST , i want that user has an enable and setting SSH public key add.
Here is my command that i launch in ms dos:
curl.exe -s -S -o "C:\TradeXpress5\users\edi\tmp\ESFTP_2" -L -w "%{http_code}\n" -F "admin=kirikou"
-F "pass=armand"
-F "cmd=c_AddUser('TRADEXPREXSS','michael','{tsi}vqOp5XseNhxd7/bLI80',32,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,'c:/temp/Charles.pub',0)" http://192.168.103.112:5466/admin_webservice.html?/" rel="nofollow
the user is created , but SSH Public key is setting but not enabled ... how can i enable SSH Public Key trough API REST?
Thanks you for you quick response ...
I am trying to create an user on Wing FTP Server with c_AddUser(...) trougth API REST , i want that user has an enable and setting SSH public key add.
Here is my command that i launch in ms dos:
curl.exe -s -S -o "C:\TradeXpress5\users\edi\tmp\ESFTP_2" -L -w "%{http_code}\n" -F "admin=kirikou"
-F "pass=armand"
-F "cmd=c_AddUser('TRADEXPREXSS','michael','{tsi}vqOp5XseNhxd7/bLI80',32,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,'c:/temp/Charles.pub',0)" http://192.168.103.112:5466/admin_webservice.html?/" rel="nofollow
the user is created , but SSH Public key is setting but not enabled ... how can i enable SSH Public Key trough API REST?
Thanks you for you quick response ...