Last active
December 21, 2015 20:39
-
-
Save mutsune/6363086 to your computer and use it in GitHub Desktop.
VNC クライアントを起動させるバッチファイル for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set rsa_key="/path/to/id_rsa" | |
set user="your_username" | |
set ip="vnc_server_ip_address" | |
set dest="%user%@%ip%" | |
set run_vnc_option="-autokill" | |
set run_vnc="vncserver %run_vnc_option%" | |
set vnc_id="1" | |
set run_vnc_client="/path/to/vncviewer.exe" | |
ssh -i %rsa_key% %dest% %run_vnc% | |
%run_vnc_client% %ip%:%vnc_id% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment