Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

@SoftCreatR: WinSCP and OpenSSH use different key types. You cannot use WinSCP key for OpenSSH. It does not matter if the key is in ~/.ssh or not. I assume what you mean is it works, if the host works with default key in the default location (like ~/.ssh/id_rsa). If you want to use a different key, you would normally have to explicitly specify it using -i switch on the ssh commandline, right? In such case, edit ssh_config to configure a non-default key for the hosts that have their own keys.
Host example.com

  IdentityFile C:/path/key
SoftCreatR

@martin: I meant "Advanced", sorry :P

Advanced Site Settings -> SSH -> Authentication -> Private key file
martin

Re: SSH-Key?

@SoftCreatR: What are "extended connection settings"?
SoftCreatR

SSH-Key?

While the Terminal integration works fine so far, it doesn't work, if you are using a private key in another directory than ~/.ssh.

Is there a way to use the key that is defined in the extended connection settings?
kizza42

Had a play with the test version and it calls Wt.exe and passes the arguments as expected Thankyou! 👍

I had to change my command line to be like yours
wt.exe ssh.exe !U@!@ -p !#  -t "cd !/ \; /bin/bash"
martin

Sent again.
kizza42

Ooh, thank you for the quick fix, I didn't get an email from you
martin

Indeed, due to the strange way the Windows Store app aliases are implemented, they are not recognized by WinSCP.
I've implemented a workaround for that:
https://winscp.net/tracker/1901
Though your syntax does not work for me. wt seems to misinterpret the semicolon. I had to escape it with a backslash:
wt.exe ssh.exe !U@!@ -p !#  -t "cd !/ \; /bin/bash"

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
kizza42

Just an additional to this, I spent the day trying to get WinSCP to call the new Windows Terminal via wt.exe but it seems unable to launch that process. I ended up having to use the following command to fool Winscp in to being able to launch Windows Terminal:
C:\Windows\System32\cmd.exe /c "wt.exe" ssh.exe !U@!@ -p !#  -t "cd !/ ; /bin/bash"
jsharma

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

Wow, that was awesome. Thanks a lot.
jsharma

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

I actually was requesting to allow adding the git-bash.exe path inside WinSCP using below Menu options:
Preferences > Integration > Applications
martin

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

I know what WSL2 is.

But you didn't explain what do you ask for from WinSCP.
kanlukasz

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

jsharma wrote:

allow supporting the GIT BASH client instead of PUTTY

This is very good idea
jsharma

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

Windows have launched the WSL2 due to which now Windows support native Ubuntu Console. Also if you allow supporting the GIT BASH client instead of PUTTY which is very unproductive, then it will be great.
martin

Re: Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

I do not understand what you ask for. Can you please elaborate?
jsharma

Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client

Please allow the Support for Using Windows Terminal's Ubuntu machine as default Bash Client or at-least GIT Bash client.