Kermit

ftp…返回到您當地的 Kermit 並發出 RECEIVE 命令

  • September 21, 2021

我正在測試 ftp/kermit (嘗試使用命令行查看它為什麼不能與腳本一起使用),由於某種原因,我得到“返回到您本地的 Kermit 並發出 RECEIVE 命令”,但沒有地方可以輸入它在那句話中……當時螢幕上出現了奇怪的字元。我不確定這是指什麼,也沒有通過線上搜尋找到太多有用的資訊。這就是我所看到的。我不太確定 kermit 的回饋。

$/apps/bin/kermit
C-Kermit>ftp open MMMM /USER:user\useruser /PASSWORD: pwpw   #changed for safety
Connected to MMMM.
User logged in.
Switching LOCUS  for file-management commands to REMOTE.
Remote system type is Windows_NT.
Default transfer mode is TEXT ("ASCII")
(/home/mcleary/k_test/michele/) C-Kermit>cd /home/mcleary/k_test/michele/
Switching LOCUS for file-management commands to LOCAL.
Service not available, connection closed by server
(/home/mcleary/k_test/michele/) C-Kermit>ascii
(/home/mcleary/k_test/michele/) C-Kermit>put test.txt ../20210916_test.txt
Return to your local Kermit and give a RECEIVE command.

KERMIT READY TO SEND...
SENT: (0 files)

*************************
SEND-class command failed.
Packets sent: 2
Retransmissions: 11
Timeouts: 12
Damaged packets: 0
Fatal Kermit Protocol Error: Too many retries

HINTS... If the preceding error message does not explain the failure:
. Adjust the timeout method (see HELP SET SEND).
. Increase the retry limit (see HELP SET RETRY).
. Try it again with SET STREAMING OFF.
. Try it again with SET PARITY SPACE.
. As a last resort, give a ROBUST command and try again.
Also:
. Be sure the source file has read permission.
. Be sure the target directory has write permission.
(Use SET HINTS OFF to suppress hints.)
*************************

2 件事

(/home/mcleary/k_test/michele/) C-Kermit>cd /home/mcleary/k_test/michele/
Switching LOCUS for file-management commands to LOCAL.
Service not available, connection closed by server

遠端系統是windows NT,你確定要cd不要lcd?像這樣的路徑/home/..讓我覺得你想在本地更改目錄(lcd在 kermit/ftp 中)不是cd

kermit 過去以兩種方式工作,要麼

put/receive on remote kermit session
disconnect from remote
receive/put on local kermit session
wait for transfert
reconnect (`recon`) to remote

或者

tell remote to go server (on unix this was `kermit -s` )
disconnect
put/receive from local kermit session

您必須找出斷開連接的密鑰(很可能是ctrl- /+c正如 roaima 所指出的那樣),這說明了什麼man kermit

引用自:https://unix.stackexchange.com/questions/669343