Accessor
Access a remote system’s filesystem via SSH/SFTP
.
This accessor allows accessing remote systems via SFTP/SSH
. This is
useful for being able to search remote systems where it is not
possible to run a Velociraptor client directly on the endpoint. For
example, on embedded edge devices such as routers/firewalls/VPN
servers etc.
To use this accessor you will need to provide credentials via the SSH_CONFIG scope variable:
LET SSH_CONFIG <= dict(hostname='localhost:22',
username='mic',
private_key=read_file(filename='/home/user/.ssh/id_rsa'))
SELECT OSPath FROM glob(accessor="ssh", globs="/*")
SSH_CONFIG
It is more convenient to use the secrets support in 0.72 to manage these credentials.