Using ConEmu bash/WSL as ssh terminal within WinSCP

Advertisement

Morgy
Guest

Using ConEmu bash/WSL as ssh terminal within WinSCP

Hello,

is it possible to use ConEmu as ssh terminal within WinSCP?
I like to just press Ctrl+P to open up PuTTY and being logged into the server via ssh.
Now I'd rather like to use ConEmu with WSL for ssh stuff on my machine, but I'm not quite sure if this works.
So I'd like to press Ctrl+P for WinSCP to open up ConEmu with bash/WSL shell and login to the current server.

Any hints on how to achieve this?

Reply with quote

Advertisement

Morgy
Guest

Awesome! You're my hero!

I modified it a little bit to be even more awesome:
"C:\Program Files\ConEmu\ConEmu64.exe" -Reuse -run bash.exe -c "ssh !U@!@ -p !# -t 'cd !/ ; /bin/bash'" -new_console:t:'!N'
+ Reuse window
+ cd to current path
+ Tab named like current session

Love WinSCP and love ConEmu <3 Thanks!

Reply with quote

Cyrlop
Guest

Is there a way to use the wslbridge mentioned here?
https://conemu.github.io/en/wsl.html#connector

Using WSL/ConEmu the documented way works fine but some bash feature don't behave as expected (keys input, mouse clicks, ...)

I tried few things without success including:
"C:\Program Files\ConEmu\ConEmu64.exe" -run {bash} -c "ssh !U@!@ -p !#"
with the {bash} task working properly as described in the above link.

Reply with quote

Advertisement

rickyL1213
Joined:
Posts:
1

You can also pass the session password by install sshpass on WSL/bash
sudo apt-get install sshpass
and set the winscp terminal path to
"C:\Program Files\ConEmu\ConEmu64.exe" -Reuse -run  bash.exe -c "sshpass -p !P ssh !U@!@ -p !#" - new_console:t: '!N'
Don't forget to tick "Remember session password and pass it to PuTTY".

Reply with quote

Advertisement

You can post new topics in this forum