Files
myoffice/history_for_print.txt
2023-07-31 08:50:05 +03:00

23 lines
490 B
Plaintext

allow run ps1
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
generate key (one time)
ssh-keygen
copy to remote
ssh-copy-id root@192.168.1.215
connect without password
ssh root@192.168.1.215
wsl host folders
cd /mnt/d/WORK/MyOffice
terminal history to file
history > history_for_print.txt
ssh remote
ssh root@192.168.1.215 'systemctl status service.name'
update remote
rsync -r --progress --exclude appsettings*.json _Published/ root@192.168.1.215:/var/www/XXX