It's much straight forward to use wsl ssh instead of powershell.
In linux, you can ssh to other server by
sshpass -p [password] ssh [user name]@[server]
I just put it together with wsl and works.
Try this profile in your windows terminal profile
{
"hidden": false,
"name": "ssh 2 remote",
"commandline": "ubuntu.exe run \"sshpass -p [password] ssh [user name]@[server]\"",
"icon": "D:/dvp/project.png"
}
Make sure sshpass installed
or
sudo apt-get install sshpass
No comments:
Post a Comment