VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   How-To: Open a local shell session in SecureCRT on Ubuntu WSL (https://forums.vandyke.com/showthread.php?t=14065)

berdmann 02-11-2020 12:54 PM

How-To: Open a local shell session in SecureCRT on Ubuntu WSL
 
3 Attachment(s)
Would you like to be able to open a local bash shell in SecureCRT on Ubuntu WSL? Please refer to the following requirements and configuration steps:

Requirements:
  • SecureCRT 8.7.0 or newer
  • Windows 10 build 1809 or newer
  • Windows update services enabled
Configuration Steps:
  1. From Windows' Settings or Control Panel, search for "Turn Windows features on or off" and enable the Windows Subsystem for Linux feature. (This will require a restart)
    https://forums.vandyke.com/attachmen...achmentid=1818
  2. Install Ubuntu 18.04 either from the Microsoft Store or manually using the following link:
    https://docs.microsoft.com/en-us/win...install-manual
  3. Install SecureCRT version 8.7.0 or newer on Windows 10 (1809 or newer)
    https://www.vandyke.com/cgi-bin/rele...duct=securecrt
  4. Launch SecureCRT and then Quick Connect. Select "Local Shell" for the protocol and replace cmd.exe with bash.exe
    https://forums.vandyke.com/attachmen...achmentid=1819
  5. Connect your local shell session, voila!
    https://forums.vandyke.com/attachmen...1&d=1581449623

alexj212 07-01-2020 01:47 PM

This works great, I would like to pass options to the shell such as

c:\windows\system32\wsl.exe -d Ubuntu-20.04 -u alexj

I get an error that the local shell path is not a console application, but if I do

c:\windows\system32\wsl.exe

Then it will work without the options I wanted past.

Any ideas, or can this be added as an option in the future.

alexj212 07-01-2020 01:57 PM

I found a semi working solution, I created a bat file with the options I wanted and reference that as the shell. The file dialog to select a shell defaults to *.exe but you can manually specify the bat file.

jjh 07-01-2020 03:21 PM

Hi Alex.

Thanks for the update. I have created an entry for you in our feature request database. We will post something here should a version of SecureCRT become available with the ability to pass command line arguments to the local shell process.

When you say that you have a semi working solution, what part of it isn't working for you?

Thanks

JJH


All times are GMT -6. The time now is 04:34 PM.