Closed davidski closed 11 months ago
It appears that you want a complete and updated script to run the SSH command on Windows using the OpenSSH client. Here's the script:
@echo off
REM Replace these values with your actual paths and connection details
set private_key_path=C:\path\to\REDACTED.pem
set username=davidski
set hostname=REDACTED
REM Run the SSH command
"C:\Windows\System32\OpenSSH\ssh.exe" -i "%private_key_path%" %username%@%hostname%
Save the above script as a .bat file (for example, ssh_to_remote.bat) and replace the placeholders (C:\path\to\REDACTED.pem, davidski, REDACTED) with your actual paths and connection details.
Thanks! I'm not using Windows or awless anymore, but this looks like a nice solution. Closing this out (I didn't realize this was still open)
Is it possible for
awless ssh
to support the OpenSSH client in current editions of Windows 10?The current v0.1.11 builds fail to connect with the following output:
It looks like the
xanzy/ssh-agent
component only supports pagent on Windows and not the OpenSSH agent service. Running the command output from--print-cli
works seamlessly, so I'm hoping this can be worked around.