Sunday, February 26, 2017

Putty SSH remote server with password in Windows

putty.exe -ssh [username]@[host] -pw [yourpassword]

You can also run some commands immediately after logging into the server.

putty.exe -ssh [username]@[host] -pw [yourpassword] -m [yourfiilename]

You can edit the file with [yourfiilename] with commands you need to execute, e.g., a file contains commands for ending a screen 

screen -S [screename] -X quit
Post a Comment