F
F
fokin_nikolay19892021-11-11 08:23:05
cmd/bat
fokin_nikolay1989, 2021-11-11 08:23:05

How to connect via putty connections?

good afternoon
How to connect via bat file to the server via ssh and after the connection is made, perform the next connection from this server?

start "putty" "c:\Users\MyUser\Desktop\putty.exe" -ssh test.ru:22 -l mylogin -pw mypassword

here a connection is being made,
and then I want a connection from this connection to another server to occur
if I use the key, -m command.txt
then at startup it executes and closes putty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-11-11
@Vindicar

Look in the direction of the plink utility , it seems to be included in the putty package.
Or look towards SSH agent forwarding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question