Use command lines Winscp.com with PAGEANT.exe and SSH Key (ppk)

Advertisement

Guest

Use command lines Winscp.com with PAGEANT.exe and SSH Key (ppk)

Hello,
I try to use the winscp.com command line with the pageant.exe tool.
The goal is to bypass any question related to my password.
I know the pageant.exe; it works very weel with the putty.exe and plink.exe.
What is the exact syntax for the command line ?

I try the 2 command without success :

winscp.exe /ini=nul sftp://root@hostname /privatekey=path\file.ppk /script=path2\command_script.cmd /log=path3\log_file.log

winscp.exe /ini=nul /script=path2\command_script.cmd

...considering that the "command_script.cmd" include the path for the SSH Key (ppk), starting by a "open" Again, the script ask me to provide the user Root password. It seems that it doesn't recognize the PAGENT process

Regards,

Reply with quote

Advertisement

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

Re: Use command lines Winscp.com with PAGEANT.exe and SSH Key (ppk)

Please attach a full session log file showing the problem (using the latest version of WinSCP).
Also include an event log from PuTTY.

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum