Connexion avec ligne de commande

Advertisement

Cem
Donor
Joined:
Posts:
2

Connexion avec ligne de commande

Bonjour,
J'aimerais depuis une Application ACCESS me connecter avec WinSCP. J'utilise la ligne de commande suivante
C:\Program Files\WinSCP\WinSCP.exe /ini=C:\WinScp.ini  /log=C:\WinScpLogFile.log  /open sftp://xp1s100072@mftp1.postfinance.ch:8022/ -hostkey=ssh-rsa 4096 pplhBJ***************** -privatekey=C:\********\PFPrivateKey.ppk
Lorsque je me connecte manuellement per le programme je n'ai aucun problème et si je retrouve la ligne de commande par : Gestionnaire-Générer URL/Code de session ... j'obtiens:
open: sftp://xp1s100072@mftp1.postfinance.ch:8022/ -hostkey="ssh-rsa 4096 pplhB**************" -privatekey="C:\****\PFPrivateKey.ppk"
Donc exactement la même chose mis à part les guillemets!!
Est-ce la clef du problème sinon pourquoi cela ne fonctionne pas???
Merci

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: Connexion avec ligne de commande

If you want to generate scripting format for commandline, make sure you select Command-line in Format ("Ligne de commande" in French).

I also do not understand why you have removed quotes. You actually need more of them, not less.

Reply with quote

Advertisement

You can post new topics in this forum