Skip to content

Instantly share code, notes, and snippets.

@mutsune
Last active December 21, 2015 20:39
Show Gist options
  • Save mutsune/6363086 to your computer and use it in GitHub Desktop.
Save mutsune/6363086 to your computer and use it in GitHub Desktop.
VNC クライアントを起動させるバッチファイル for Windows
@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