documentation/modules/post/windows/manage/install_ssh.md
To use this module you need an administrative Meterpreter or shell session on a Windows 10, 1809 release or higher.
This module has been tested against:
This module was not tested against, but may work against:
Versions prior to Windows 10 are not supported.
use post/windows/manage/install_sshset session #runssh [email protected] msf > use post/windows/manage/install_ssh
msf post(windows/manage/install_ssh) > set SESSION 1
SESSION => 1
msf post(windows/manage/install_ssh) > exploit
[*] Installing OpenSSH.Server
[*] Installing OpenSSH.Client
[*] Post module execution completed
Utilities such as ssh, sftp, and sshfs may be used over the Windows SSH session. When combined with capabilities such as SSH forwarding, SSH on Windows can provide pentesters excellent utility and flexibility.
msf > use post/windows/manage/install_ssh
msf post(windows/manage/install_ssh) > set SESSION 1
SESSION => 1
msf post(windows/manage/install_ssh) > set INSTALL_CLIENT false
INSTALL_CLIENT => false
msf post(windows/manage/install_ssh) > set INSTALL_SERVER false
INSTALL_SERVER => false
msf post(windows/manage/install_ssh) > set UNINSTALL_CLIENT true
UNINSTALL_CLIENT => true
msf post(windows/manage/install_ssh) > set UNINSTALL_SERVER true
UNINSTALL_SERVER => true
msf post(windows/manage/install_ssh) > exploit
[*] Uninstalling OpenSSH.Server
[*] Uninstalling OpenSSH.Client
[*] Post module execution completed