kingjacob90 Posted April 24, 2020 Posted April 24, 2020 Hi I have found that if I run a TCP server on port 22 and connect to the IP using the Windows PowerShell command "ssh -l *any-user* *ip-address* the server (my script) will receive the msg "SSH-2.0-OpenSSH_for_Windows_7.7" from the client (Windows PowerShell), but that is it... I would like to be able to "talk" to my server using the Windows PowerShell, send commands/msg's, and for my server to reply and them to be displayed in the shell. When I send a msg to the Windows PowerShell ssh connection (using my script TCPsend) nothing happens, but there are no errors. I think the Windows PowerShell SSH client is looking for some type of msg back. Does anyone know more about the SSH handshake? What I would have to do to make the two (Shell and Script) "talk" with each other?
faustf Posted April 24, 2020 Posted April 24, 2020 please for have best help paste a code of your script
faustf Posted April 24, 2020 Posted April 24, 2020 (edited) i suggest using this for work with ssh , for my opinion is much solid and easy to use , have also possibility use com if i not remember bad https://winscp.net/eng/docs/scripting you can use autoit for create udf or wrapper Edited April 24, 2020 by faustf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now