OCIにファイルの転送をクライアントPC(Ubuntu 22.04)からgFTPを使って行えるようにした。やり方は、以下のようにPreferencesタブにsshコマンドを書くこと。以下の例では、-oオプションを使っているが、-iオプションの方が簡単。
Here are the steps how to setup gFTP to use SSH keys:
- In the FTP menu click on Preferences;
- Go to SSH tab;
- Fill the field SSH Extra Params with this value:
-o IdentityFile=/home/<your user>/.ssh/id_rsa
Change<user name>
with your real username. Or use:-o IdentityFile=~/.ssh/id_rsa
- In gFTP’s main window choice SSH2 as type of the connection;
- Enter the target Host name, or IP address;
- Setup the SSH Port of the target machine (if it’s not the default –
22
); - Enter User for the SSH connection;
- Enter your SSH key’s Passphrase (if there is some);
- Hit Enter.
ポイントは、SSH Prog Nameにsshと正しいSSHコマンド名を入れること、-iオプションで正しいパスを指定するときに -iの前に空白を入れること、Need SSH User/Passのチェックは外すことの3点。

以下のように無事に接続されたので、相互にファイル転送ができるようになったはず。

クライアントPCからOCIに画像ファイル(dembell-1966702_1920.jpg)を送ってみた。無事に転送できた。

しかし、LOCALからテーマディレクトリ(cocoon-child-master)を送ろうとしたら以下のように失敗している。原因を突き止めねば。他のディレクトリでは問題なく転送できたのでLocal Sites固有の問題なのか?
