
sftp リモート サーバーへの接続を設定していますが、すべてのリクエストがタイムアウトで失敗しました。また、FileZilla 経由で接続しようとしましたが、同じ出力が得られました。どのような問題に直面し、それをどのように解決しますか? よろしくお願いします
(base) macbook-air:~ username$ ssh root@***.**.***.*
ssh: connect to host ***.**.***.* port 22: Operation timed out
(base) macbook-air:~ username$ ssh [email protected]
The authenticity of host '178.208.83.17 (178.208.83.17)' can't be established.
RSA key fingerprint is SHA256:2FcbPfouRMFt9G6ToDDr3WyFZq7cWNoxnc6EmauZ388.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '178.208.83.17' (RSA) to the list of known hosts.
Password:
ssh_dispatch_run_fatal: Connection to 178.208.83.17 port 22: Operation timed out
答え1
覚えておいてくださいsshそしてsftp異なるプロトコルです。sftp通常、サーバーはファイル転送へのアクセスのみを許可し、ssh 経由のようにコマンドを実行するためのシェル アクセスは許可しません。
おそらく、ssh ではサーバーに接続できないと思います。代わりに sftp コマンドを試してください。