sorb: scp mit private key

äh, hat gerade jemand ne Idee, wie man scp mit ssh + private key durchführt? Zwar geht das, wenn ich mir den Kram (host etc) in .ssh/config anlege, aber das kann ich hier gerade nicht machen (weil ich das nicht darf).

sowas wäre toll, nur geht das irgendwie nicht
scp -i /home/me/pathtokey/pkey me@example.com:/path/to/file' ~/savepath

  1. äh, hat gerade jemand ne Idee, wie man scp mit ssh + private key durchführt?

    Genauso wie SSH. Sobald es mit SSH funktioniert, gehts auch per SCP

    1. äh, hat gerade jemand ne Idee, wie man scp mit ssh + private key durchführt?

      Genauso wie SSH. Sobald es mit SSH funktioniert, gehts auch per SCP

      arg, führendes Hochkomma vergessen...

      scp -i /home/me/pathtokey/pkey 'me@example.com:/path/to/file' ~/savepath

      -------------------------------|

      thx anyway
      sorb

  2. Hi,

    sowas wäre toll, nur geht das irgendwie nicht
    scp -i /home/me/pathtokey/pkey me@example.com:/path/to/file' ~/savepath

    -------------------------------------------------------------^
    Was'n das?

    Sonst "man scp" ergibt

    scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
             [-l limit] [-o ssh_option] [-P port] [-S program]
             [[user@]host1:]file1 ... [[user@]host2:]file2

    Grüße

    • Steffen