-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathssh.bat
More file actions
36 lines (34 loc) · 749 Bytes
/
ssh.bat
File metadata and controls
36 lines (34 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
call config
if [%1]==[] (
echo Missing destination. Use /? for help.
goto:eof
)
if "%1" == "/?" (
echo Usage: ssh profileName^|user@host.com
echo.
echo SSH using the Bitvice SSH Client.
goto:eof
)
:: http://www.bitvise.com/tunnelier#sexec
set profile_bscp=%term_path%\%1.bscp
set profile_tlp=%term_path%\%1.tlp
echo.
if exist "%profile_bscp%" (
echo Connecting with profile %1.bscp ...
echo.
stermc -profile="%profile_bscp%"
goto:eof
) else (
if exist "%profile_tlp%" (
echo Connecting with profile %1.tlp ...
echo.
stermc -profile="%profile_tlp%"
goto:eof
) else (
echo Connecting to %1 ...
echo.
stermc %1
goto:eof
)
)