当将 PuTTY 连接到我的 Wallix Bastion SomeBastionAdress.fr 时,它运行正常(敏感数据已匿名化):
login as: MyLogin
Keyboard-interactive authentication prompts from server:
| WARNING: Access to this system is restricted to duly authorized users only. A
> ny attempt to access this system without authorization or fraudulently remain
> ing within such system will be prosecuted in accordance with the law. Any aut
> horized user is hereby informed and acknowledges that his/her actions may be
> recorded, retained and audited.
|
| MyLogin's password:
End of keyboard-interactive prompts from server
| ID | Cible (page 1/1) | Autorisation
|----|-----------------------------------------|--------------------
| 0 | SomeAdress@SomeLinuxServer:SSH | ExpeOL-usersLocaux
| 1 | SomeAdress2@SomeLinuxServer2:SSH | ExpeOL-usersLocaux
| 2 | SomeAdress3@SomeLinuxServer3:SSH | ExpeOL-usersLocaux
| 3 | SomeAdress4@SomeLinuxServer4:SSH | ExpeOL-usersLocaux
Tapez h pour l'aide, ctrl-D pour quitter
> 0
Cible sélectionnée: SomeAdress@SomeLinuxServer:SSH
Account successfully checked out
Adresse cible (dans 10.192.0.0/14): LinuxMachineName
Login cible: julien
julien's password:
Vous êtes informé(e) et reconnaissez que vos actions sont susceptibles d’être en registrées, conservées et auditées conformément à la politique de sécurité de vo tre organisation.
Veuillez vous rapprocher de votre administrateur WALLIX Bastion pour plus d’info rmations.
Linux LinuxMachineName 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 22 17:26:28 2023 from 10.192.67.26
julien@LinuxMachineName:~$ echo $SSH_CONNECTION
10.192.67.26 34116 10.192.118.77 22
我现在想连接 WinSCP,以便可以安全地将文件从本地复制到我的服务器。
我用了:
File protocol: SCP
Host name: SomeBastionAdress.fr
User name: SomeAdress@SomeLinuxServer:SSH:MyLogin
我还尝试了其他几个用户名,但没有成功:
User name: julien@LinuxMachineName:SomeAdress@SomeLinuxServer:SSH:MyLogin
User name: julien:SomeAdress@SomeLinuxServer:SSH:MyLogin
User name: julien@SomeAdress@SomeLinuxServer:SSH:MyLogin
etc. (I tried many combinations)
但这不起作用,WinSCP 卡在这里:
Authenticating...
Using username "SomeAdress@SomeLinuxServer:SSH:MyLogin"
Authenticating with pre-entered password.
Authenticated
Starting the session...
我也尝试了 SFTP,但收到以下错误消息:
Connection has been unexpectedly closed. Server sent command exit status 255 Cannot initialize SFTP protocol. Is the host running an SFTP server?
当将 SFTP 协议更改为/bin/sftp-server
而不是 时Default
,我收到以下消息错误。这也是使用时相同的消息错误sudo su -c /bin/sftp-server
Received too large (109710925 B) SFTP packet. Max supported packet size is 1024000 B. The error is typically caused by message printed from startup script (like .profile). The message may start with "Adre". Cannot Initialize SFTP protocol. Is the host running an SFTP server?
我也在 SFTP 中更改了 Shell,但是没有成功。
我究竟做错了什么?