SFTPを使用して接続しようとしたときにカールエラー(2)が発生する[閉じる]

SFTPを使用して接続しようとしたときにカールエラー(2)が発生する[閉じる]

Telnet経由でログインできることを確認しました。

$ telnet ftp.domain.com 990 
Trying xx.xxx.xxx.xx... 
Connected to ftp.domain.com. Escape character is '^]'.

sftpを使用して接続しようとすると、次のエラーが発生します。

curl: (2) Failure establishing ssh session

以下を実行してください

curl -u user sftp://ftp.domain.com:990/ToFile/file.csv

パスワードを入力して待ってからエラーが発生します。

FIPSが無効になっていることを確認しました。

cat /proc/sys/crypto/fips_enabled
0

また、以下を試しました。

$ sftp -P 990 [email protected]
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer

その後、次のことを試しました。

$ sftp -o PreferredAuthentications=password -o PubkeyAuthentication=no -P 990 [email protected]
ssh_exchange_identification: Connection closed by remote host 
Couldn't read packet: Connection reset by peer

ベストアンサー1

あなたのサービスはpureを使用しているかもしれませんがftp、あなたが知らないものに接続することは通常バグの問題に対する領収書です。以下を使って接続できますかftp

ftp ftp.domain.com 990
curl -u user ftp://ftp.domain.com:990/ToFile/file.csv

22SFTPは通常ポートで実行されますssh。経由でサーバーに接続できますかssh?あなたのものには何がありますかsshd_config?エラーは、ssh試行中のポートが実行されていないことを示します。

おすすめ記事