10

Now the tunnel works if I open the bitvise application and click the login button. I want to change that. I want the tunnel automatic open if open windows or restart windows

Where I can set the automatic tunnel to open when opening windows or restarting windows?

The options tab in the bitvise ssh client like this :

enter image description here

I'm still confused to set it?

Please help me

jww
  • 12,722
Success Man
  • 321
  • 3
  • 4
  • 8

3 Answers3

18

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.

  1. In your Bitvise Profile, select these options:
    • Uncheck Open Terminal
    • Uncheck Open SFTP
    • If using password authentication, check Store encrypted password in profile
  2. 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.
  3. 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.)
  4. 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"
  5. Right-click the new shortcut and select Properties
  6. 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
  1. Click OK
  2. Double-click the shortcut and verify that Bitvise started up correctly
  3. You can also verify that if you go to Startup Apps in Windows Settings, you see an entry for Bitvise SSH Client
  4. Reboot windows and confirm that Bitvise started up correctly
humbads
  • 281
0

You can add it to the startup group, so that it loads when you log in to Windows.

Last I checked, there was an issue where the System Tray icon wouldn't show up if the Bitvise SSH Client loaded before the taskbar itself was loaded. Because of that, I used a batch file and put a big sleep right into the batch file.

If Bitvise has fixed things so that it works if they load before the taskbar does, then you could do this with a Windows Shortcut as well. It would have to be a shortcut to BvSsh.exe, rather than to the saved connection, because you need to pass the -loginOnStartup parameter.

Obviously, this all requires that you have the connection set up so that you don't have to type an SSH password.

C:\Users\dyaw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup> dir
 Volume in drive C is OS
 Volume Serial Number is 06C9-85F1

 Directory of C:\Users\dyaw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

08/10/2018  01:43 PM    <DIR>          .
08/10/2018  01:43 PM    <DIR>          ..
05/26/2015  10:39 AM               319 Bitvise SSH Clients.bat
               1 File(s)            319 bytes
               2 Dir(s)  236,144,820,224 bytes free

C:\Users\dyaw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup> type "Bitvise SSH Clients.bat"
@echo off

timeout 30 /nobreak

start "" "C:\Program Files (x86)\Bitvise SSH Client\BvSsh.exe" -profile=C:\Users\dyaw\Documents\server.tlp -loginOnStartup

REM Delay a bit so that the two icons are always in the same order in the System Tray
timeout 1 /nobreak

start "" "C:\Program Files (x86)\Bitvise SSH Client\BvSsh.exe" -profile=C:\Users\dyaw\Documents\linux.tlp -loginOnStartup

C:\Users\dyaw\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup>

Note: The directory shown above is the one for Windows 7. New versions of Windows may have moved the Start Menu.

David Yaw
  • 807
  • 2
  • 9
  • 13
-3

You can use plink command-line tool from PuTTY package. And make it start with Windows.