GitBashを使ってロリポップ!サーバーに公開鍵をコピーしたい。
解決したいこと
GitBashを使ってロリポップ!サーバーに公開鍵をコピーしたい。
例)
GitBashを使ってロリポップ!サーバーに公開鍵をコピーしたいのですが原因不明のエラーでうまくいきません。
Windows11です。
-参考URL-
https://qiita.com/ryunakae/items/1577c8015951522570d8
上記リンクを参考に進めていたのですが、「3. サーバーに公開鍵をコピー」の項目で躓いてしまいました。
最近GitやSShなどを勉強しはじめた初心者で、1週間近く先に進めていません。
原因の分かる方がおられましたらご教示いただけますと幸いです。
発生している問題・エラー
$ ssh-copy-id ~/.ssh/id_rsa.pub (lolipopのアカウント名)@ssh.lolipop.jp -p2222
/usr/bin/ssh-copy-id: ERROR: Too many arguments. Expecting a target hostname, got:
Usage: /usr/bin/ssh-copy-id [-h|-?|-f|-n|-s] [-i [identity_file]] [-p port] [-F alternative ssh_config file] [[-o <ssh -o options>] ...] [user@]hostname
-f: force mode -- copy keys without trying to check if they are already installed
-n: dry run -- no keys are actually copied
-s: use sftp -- use sftp instead of executing remote-commands. Can be useful if the remote only allows sftp
-h|-?: print this help
もしかしたら初歩的な所で変なミスをしているのかもしれません。
0 likes