Honestly, the `sftp` command you tried is almost right! Just tweak it:
`sftp user@host
get /remote/file /local/path`
Then exit with `bye`.
For passwordless, like others said, SSH keys. Here’s a quick command:
`ssh-keygen -t ed25519` (then copy it over).
`sftp user@host
get /remote/file /local/path`
Then exit with `bye`.
For passwordless, like others said, SSH keys. Here’s a quick command:
`ssh-keygen -t ed25519` (then copy it over).
