How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?
The Bitvise SSH Client user interface does not provide an option to start the profile automatically when Windows 10 starts up. Instead, you can create a shortcut to Bitvise with the "-loginOnStartup" option. The steps below are a lot easier than creating a batch file.
- In your Bitvise Profile, select these options:
- Uncheck "Open Terminal"
- Uncheck "Open SFTP"
- If using password authentication, check "Store encrypted password in profile"
- Click the "Save profile as" button and save the profile, e.g. to "%USERPROFILE%\Documents\BitviseProfile.tlp". You may see a message letting you know that sensitive information will be saved in the profile.
- Open the folder "%PROGRAMFILES(X86)%\Bitvise SSH Client" in one Explorer window, and the "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" folder in another Explorer window. (If you copy and paste the locations into Explorer, they will automatically expand to the correct folders for your system.)
- Right-click on BvSsh.exe and drag it to the Startup folder, and select "Create shortcuts here" from the context menu. Rename the new shortcut like "auto-start bitvise ssh tunnel"
- Right-click the new shortcut and select "Properties"
-
In the "Target" setting, enter the following, taking care to set the profile path to the actual path of your Bitvise profile:
"C:\Program Files (x86)\Bitvise SSH Client\BvSsh.exe" -profile="C:\Users\Me\Documents\BitviseProfile.tlp" -loginOnStartup
Click "OK"
- Double-click the shortcut and verify that Bitvise started up correctly
- You can also verify that if you go to "Startup Apps" in Windows Settings, you see an entry for "Bitvise SSH Client"
- Reboot windows and confirm that Bitvise started up correctly