0

How to send a password from a to a newly opened session from that same file?

When I try this:

@echo off
cd "C:\Program Files\OpenSSH\"
start ssh.exe [email protected]
echo passwd
pause

It opens a new cmd.exe window for ssh session but enters the passwd in the old cmd window.

2

0

Browse other questions tagged or ask your own question.