0

Just wondering if this is at all possible to run the scp command like:

scp [flag] "ssh-rsa AAAAB3NzaC1yc..." user:website.com@/path/to/file ./
Austin Poole
  • 652
  • 6
  • 11
  • 1
    That related SO question should be informative, since `scp` uses the same flag as `ssh` to specify a keyfile. There may be a way, but it does not seem like a recommended approach for security purposes. – Darragh Enright Feb 13 '19 at 16:46
  • 1
    Thanks for linking the question for me. I was racking my brains googling trying to find if this is at all possible. I agree its not the recommended way of doing it. I was just seeing if it would be a possible solution. – Austin Poole Feb 13 '19 at 17:43
  • 1
    I think it's worthwhile to explore these questions. In this case it's clearly not a good idea for security purposes but that's why we ask questions—to discover and learn :) – Darragh Enright Feb 14 '19 at 08:38

0 Answers0