Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] installed SSHD. SSH works, SCP works, SFTP fails. #282

Open
mrfixpl opened this issue Dec 2, 2024 · 3 comments
Open

[BUG] installed SSHD. SSH works, SCP works, SFTP fails. #282

mrfixpl opened this issue Dec 2, 2024 · 3 comments

Comments

@mrfixpl
Copy link

mrfixpl commented Dec 2, 2024

Describe the bug
When trying to connect over SFTP, connection is terminated immediately.

To Reproduce
Steps to reproduce the behavior:

  1. Issue command: sftp root@10.173.189.1
  2. I get error
...
debug1: Authentication succeeded (password).
Authenticated to 10.173.189.1 ([10.173.189.1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = pl_PL.UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2280, received 2008 bytes, in 0.1 seconds
Bytes per second: sent 16568.9, received 14592.3
debug1: Exit status 141
Connection closed

Expected behavior
SFTP prompt > should appear and SFTP session should not be terminated.

Firmware(please complete the following information):

  • Brand: AU37x
  • Hardware-type: MHI2_ER_AU37x_P5089
  • Version MU: 1326

Additional context

  • Same thing happens with all FTP/SFTP clients that I tried (ForkLift, CyberDuck, FileZilla...)
  • I've commented out the banner from the sshd config. thought that it might be in the way of the proper connection.
  • sshd installed via More Incredible Bash.
@andrewleech
Copy link
Collaborator

For my Linux box to connect to the mib I had to use .ssh/config settings like:

Host mib
  StrictHostKeyChecking no
  Hostname 192.168.0.207
  User root
  HostKeyAlgorithms +ssh-rsa
  PubkeyAcceptedAlgorithms +ssh-rsa

I'm pretty sure I used scp just fine, including WinSCP app, but don't remember ever using sftp.

@c727
Copy link
Contributor

c727 commented Dec 5, 2024

I also havnt tested SFTP...
The "normal" procedure is to copy your files from sdcard to unit using SSH 😅

@mrfixpl
Copy link
Author

mrfixpl commented Dec 13, 2024

For my Linux box to connect to the mib I had to use .ssh/config settings like:

Host mib
  StrictHostKeyChecking no
  Hostname 192.168.0.207
  User root
  HostKeyAlgorithms +ssh-rsa
  PubkeyAcceptedAlgorithms +ssh-rsa

I'm pretty sure I used scp just fine, including WinSCP app, but don't remember ever using sftp.

I had some issues on one of my machines. Skipped the tutorial and used this command on the client side instead:

ssh -oHostKeyAlgorithms=+ssh-rsa root@10.173.189.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants