Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get files without SFTP#1809

Answeredbyterrafrost
felipenaf asked this question inQ&A
Discussion options

Hi, everyone.

I'm trying to transfer files, but the remote server doesn't have an SFTP installed.

It's possible to transfer files without the SFTP class?
Use just SCP?
Or another way, I don't know.

In any case, the error that I received is this:

UnexpectedValueException: Expected NET_SFTP_VERSION. Got packet type: /home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:612/home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:637/home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:532/home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:1063/home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:984/home/felipe/dev/vam5.6/be/API/composer/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:970/home/felipe/dev/vam5.6/be/API/tests/SFTPTest.php:62

I'm using version 3.0

I appreciate the help.

Thanks!

You must be logged in to vote

Perhttps://unix.stackexchange.com/a/282220/54354 you should be able to do$ssh->exec('hexdump -C yourfile.bin') or$ssh->exec('xxd -b yourfile.bin.

I dropped SCP from phpseclib v3 because (1) I think SFTP is the superior protocol and (2)#146 defied diagnosis.

Replies: 1 comment 1 reply

Comment options

Perhttps://unix.stackexchange.com/a/282220/54354 you should be able to do$ssh->exec('hexdump -C yourfile.bin') or$ssh->exec('xxd -b yourfile.bin.

I dropped SCP from phpseclib v3 because (1) I think SFTP is the superior protocol and (2)#146 defied diagnosis.

You must be logged in to vote
1 reply
@felipenaf
Comment options

I was trying to find some answer to this, but I didn't, until now.
@terrafrost, thank you very much for the explanation.
And I agree about the SFTP. In any other case, I will adopt him even.

Answer selected byfelipenaf
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@felipenaf@terrafrost

[8]ページ先頭

©2009-2025 Movatter.jp