https://github.com/thc1006/windows-ssh
Windows SSH Auto login vbscript
https://github.com/thc1006/windows-ssh
ssh vbscript visual-basic windows windows-10
Last synced: 3 months ago
JSON representation
Windows SSH Auto login vbscript
- Host: GitHub
- URL: https://github.com/thc1006/windows-ssh
- Owner: thc1006
- License: mit
- Created: 2022-11-27T21:30:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T10:51:38.000Z (about 3 years ago)
- Last Synced: 2023-11-15T23:26:12.563Z (about 2 years ago)
- Topics: ssh, vbscript, visual-basic, windows, windows-10
- Language: VBScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# windows-ssh
Windows SSH Auto Login vbscript
## 做法
- 前提 Windows 系統中要有 OpenSSH 伺服器 用戶端 (Openssh client)
- [安裝 OpenSSH -Microsoft](https://docs.microsoft.com/zh-tw/windows-server/administration/openssh/openssh_install_firstuse)
- Windows 11:設定->應用程式->選用功能->新增選用功能-> OpenSSH 伺服器
## 做法
1. 建立一個 notpad (記事本),左上角「檔案」點選「另存新檔」貼上下面程式碼。
2. 檔案名稱副檔名改成 XXX.vbs,例如:login.vbs
3. 存檔類型 選「所有檔案」,放在桌面。
## 程式
更改成自己的 IP (第2行),密碼(第4行)。
```cmd=
set wshshell=Wscript.CreateObject("WScript.Shell")
wshShell.Run "ssh nycu@192.168.XX.XXX"
Wscript.Sleep 1000
wshshell.SendKeys "nycuXXX"
wshShell.SendKeys "{ENTER}"
Wscript.Sleep 1000
```