-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvncToHome
More file actions
executable file
·27 lines (23 loc) · 1.03 KB
/
vncToHome
File metadata and controls
executable file
·27 lines (23 loc) · 1.03 KB
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
#!/usr/bin/env bash
# For password don't use the normal AMT password
# there is a secondary FB password for the KVM session
# Download tvnjviewer from:
# https://www.tightvnc.com/download/2.8.3/tvnjviewer-2.8.3-bin-gnugpl.zip
if [ ! -f ./tightvnc-jviewer.jar ];
then
wget -q 'https://www.tightvnc.com/download/2.8.3/tvnjviewer-2.8.3-bin-gnugpl.zip'
unzip -j "tvnjviewer-2.8.3-bin-gnugpl.zip" "nossh/tightvnc-jviewer.jar" -d ./
rm tvnjviewer-2.8.3-bin-gnugpl.zip
fi
ssh -2 -c aes128-ctr -x -p 22 -l "$(<~/.private/AMT_FB_SSH_USER.vnc)" \
-f -L 5900:192.168.1.171:5900 "$(<~/.private/AMT_FB_SSH_HOST.vnc)" sleep 10
java -jar ./tightvnc-jviewer.jar \
-vvv \
-host=127.0.0.1 \
-port=5900 \
-password=$(<~/.private/AMT_FB_PASSWORD.vnc) \
-showConnectionDialog=No
# -host=192.168.1.171 \
# -sshHost=$(<~/.private/AMT_FB_SSH_HOST.vnc) \
# -sshUser=$(<~/.private/AMT_FB_SSH_USER.vnc) \
# -sshPort=22 \