Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2020, 12:54 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 441
Arrow How-To: Open a local shell session in SecureCRT on Ubuntu WSL

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)
  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
  5. Connect your local shell session, voila!
Attached Images
File Type: png TurnWindowsFeaturesOnOff.png (21.9 KB, 7170 views)
File Type: png LocalShell.png (13.5 KB, 7359 views)
File Type: png WSL_LocalShell.png (84.3 KB, 7331 views)
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by berdmann; 02-20-2020 at 11:59 AM.
Reply With Quote
  #2  
Old 07-01-2020, 01:47 PM
alexj212 alexj212 is offline
Registered User
 
Join Date: Mar 2009
Posts: 12
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.
Reply With Quote
  #3  
Old 07-01-2020, 01:57 PM
alexj212 alexj212 is offline
Registered User
 
Join Date: Mar 2009
Posts: 12
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.
Reply With Quote
  #4  
Old 07-01-2020, 03:21 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 815
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
Reply With Quote
Reply

Tags
bash , local shell , windows 10 , wsl

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:47 PM.