misc, GW SP 2
This commit is contained in:
10
ssh.md
Normal file
10
ssh.md
Normal file
@@ -0,0 +1,10 @@
|
||||
get keys
|
||||
ssh-keygen -t ed25519 -C "vastai-$(whoami)@$(hostname)-$(Get-Date -UFormat %Y%m%d)" -f "D:\Nextcloud\_STORAGE\keys\vastai\id_ed25519"
|
||||
Get-Content "D:\Nextcloud\_STORAGE\keys\vastai\id_ed25519.pub" -Raw | Set-Clipboard
|
||||
|
||||
SSH
|
||||
ssh -i "D:\Nextcloud\_STORAGE\keys\vastai\id_ed25519" -p 12547 root@ssh8.vast.ai -L 8080:localhost:8080
|
||||
|
||||
|
||||
port forward
|
||||
ssh -i "D:\Nextcloud\_STORAGE\keys\vastai\id_ed25519" -o IdentitiesOnly=yes -N -L 11434:localhost:21434 -L 7500:localhost:17500 -p 12547 root@ssh8.vast.ai
|
Reference in New Issue
Block a user