sftp m@10.1.1.2 exec: /opt/bin/ssh: No such file or directory Connection closed












1















I've just installed openssh-sftp-client - 7.6p1-1 and for whatever reason I cannot sftp to any servers even though it shows it is installed and its apparently a command.
I can SSH fine just no SFTP



Here I show the package list with open-ssh-client installed:



[/] # uname -v
opkg list-installed
entware-opt - 222108-5
findutils - 4.6.0-1
ldconfig - 2.23-6
libc - 2.23-6
libgcc - 6.3.0-6
libopenssl - 1.0.2n-1
libpthread - 2.23-6
librt - 2.23-6
libssp - 6.3.0-6
libstdcpp - 6.3.0-6
locales - 2.23-6
openssh-sftp-client - 7.6p1-1
opkg - 2011-04-08-9c97d5ec-17a
terminfo - 6.0-1c
zlib - 1.2.11-1


Here I show the fact that the SFTP client is actually executable as far as I know:



[/] # sftp
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] host
sftp [user@]host[:file ...]
sftp [user@]host[:dir[/]]
sftp -b batchfile [user@]host


Here I show that SSH works perfectly fine to another server:



[/] # ssh m@10.1.1.2
The authenticity of host '10.1.1.2 (10.1.1.2)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.1.2' (ECDSA) to the list of known hosts.
m@10.1.1.2's password:
Linux XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


But when I attempt to run sftp I'm presented with this:



[/] # sftp m@10.1.1.2
exec: /opt/bin/ssh: No such file or directory
Connection closed


Do I have to edit the sshd_config file under:



 # override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /share/MD0_DATA/.qpkg/Entware-ng/bin

AllowUsers admin
# Example of overriding settings on a per-user basis
#Match User anoncvs


Any help would be appreciated.
thx
Mike










share|improve this question









New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

    – robosnacks
    yesterday













  • Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

    – steeldriver
    yesterday











  • Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

    – AireSine
    9 hours ago


















1















I've just installed openssh-sftp-client - 7.6p1-1 and for whatever reason I cannot sftp to any servers even though it shows it is installed and its apparently a command.
I can SSH fine just no SFTP



Here I show the package list with open-ssh-client installed:



[/] # uname -v
opkg list-installed
entware-opt - 222108-5
findutils - 4.6.0-1
ldconfig - 2.23-6
libc - 2.23-6
libgcc - 6.3.0-6
libopenssl - 1.0.2n-1
libpthread - 2.23-6
librt - 2.23-6
libssp - 6.3.0-6
libstdcpp - 6.3.0-6
locales - 2.23-6
openssh-sftp-client - 7.6p1-1
opkg - 2011-04-08-9c97d5ec-17a
terminfo - 6.0-1c
zlib - 1.2.11-1


Here I show the fact that the SFTP client is actually executable as far as I know:



[/] # sftp
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] host
sftp [user@]host[:file ...]
sftp [user@]host[:dir[/]]
sftp -b batchfile [user@]host


Here I show that SSH works perfectly fine to another server:



[/] # ssh m@10.1.1.2
The authenticity of host '10.1.1.2 (10.1.1.2)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.1.2' (ECDSA) to the list of known hosts.
m@10.1.1.2's password:
Linux XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


But when I attempt to run sftp I'm presented with this:



[/] # sftp m@10.1.1.2
exec: /opt/bin/ssh: No such file or directory
Connection closed


Do I have to edit the sshd_config file under:



 # override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /share/MD0_DATA/.qpkg/Entware-ng/bin

AllowUsers admin
# Example of overriding settings on a per-user basis
#Match User anoncvs


Any help would be appreciated.
thx
Mike










share|improve this question









New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

    – robosnacks
    yesterday













  • Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

    – steeldriver
    yesterday











  • Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

    – AireSine
    9 hours ago
















1












1








1








I've just installed openssh-sftp-client - 7.6p1-1 and for whatever reason I cannot sftp to any servers even though it shows it is installed and its apparently a command.
I can SSH fine just no SFTP



Here I show the package list with open-ssh-client installed:



[/] # uname -v
opkg list-installed
entware-opt - 222108-5
findutils - 4.6.0-1
ldconfig - 2.23-6
libc - 2.23-6
libgcc - 6.3.0-6
libopenssl - 1.0.2n-1
libpthread - 2.23-6
librt - 2.23-6
libssp - 6.3.0-6
libstdcpp - 6.3.0-6
locales - 2.23-6
openssh-sftp-client - 7.6p1-1
opkg - 2011-04-08-9c97d5ec-17a
terminfo - 6.0-1c
zlib - 1.2.11-1


Here I show the fact that the SFTP client is actually executable as far as I know:



[/] # sftp
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] host
sftp [user@]host[:file ...]
sftp [user@]host[:dir[/]]
sftp -b batchfile [user@]host


Here I show that SSH works perfectly fine to another server:



[/] # ssh m@10.1.1.2
The authenticity of host '10.1.1.2 (10.1.1.2)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.1.2' (ECDSA) to the list of known hosts.
m@10.1.1.2's password:
Linux XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


But when I attempt to run sftp I'm presented with this:



[/] # sftp m@10.1.1.2
exec: /opt/bin/ssh: No such file or directory
Connection closed


Do I have to edit the sshd_config file under:



 # override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /share/MD0_DATA/.qpkg/Entware-ng/bin

AllowUsers admin
# Example of overriding settings on a per-user basis
#Match User anoncvs


Any help would be appreciated.
thx
Mike










share|improve this question









New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I've just installed openssh-sftp-client - 7.6p1-1 and for whatever reason I cannot sftp to any servers even though it shows it is installed and its apparently a command.
I can SSH fine just no SFTP



Here I show the package list with open-ssh-client installed:



[/] # uname -v
opkg list-installed
entware-opt - 222108-5
findutils - 4.6.0-1
ldconfig - 2.23-6
libc - 2.23-6
libgcc - 6.3.0-6
libopenssl - 1.0.2n-1
libpthread - 2.23-6
librt - 2.23-6
libssp - 6.3.0-6
libstdcpp - 6.3.0-6
locales - 2.23-6
openssh-sftp-client - 7.6p1-1
opkg - 2011-04-08-9c97d5ec-17a
terminfo - 6.0-1c
zlib - 1.2.11-1


Here I show the fact that the SFTP client is actually executable as far as I know:



[/] # sftp
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] host
sftp [user@]host[:file ...]
sftp [user@]host[:dir[/]]
sftp -b batchfile [user@]host


Here I show that SSH works perfectly fine to another server:



[/] # ssh m@10.1.1.2
The authenticity of host '10.1.1.2 (10.1.1.2)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.1.2' (ECDSA) to the list of known hosts.
m@10.1.1.2's password:
Linux XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


But when I attempt to run sftp I'm presented with this:



[/] # sftp m@10.1.1.2
exec: /opt/bin/ssh: No such file or directory
Connection closed


Do I have to edit the sshd_config file under:



 # override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /share/MD0_DATA/.qpkg/Entware-ng/bin

AllowUsers admin
# Example of overriding settings on a per-user basis
#Match User anoncvs


Any help would be appreciated.
thx
Mike







sftp






share|improve this question









New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 9 hours ago







AireSine













New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









AireSineAireSine

62




62




New contributor




AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






AireSine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

    – robosnacks
    yesterday













  • Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

    – steeldriver
    yesterday











  • Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

    – AireSine
    9 hours ago





















  • Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

    – robosnacks
    yesterday













  • Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

    – steeldriver
    yesterday











  • Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

    – AireSine
    9 hours ago



















Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

– robosnacks
yesterday







Maybe the problem is just as it says? The file or directory does not exist... have you tried just sftp root@10.1.1.2 and navigating interactively?

– robosnacks
yesterday















Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

– steeldriver
yesterday





Is the client side actually an Ubuntu system? opkg makes it look like it isn't, and I don't think openssh-sftp-client is a standard Ubuntu package either (sftp is provided by openssh-client)

– steeldriver
yesterday













Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

– AireSine
9 hours ago







Its a QNAP box actually...I thought it was based off of UBUNTU. opkg doesn't scream that it does. If I'm in the wrong thread I apologize. UNAME says just LINUX.

– AireSine
9 hours ago












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






AireSine is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110094%2fsftp-m10-1-1-2-exec-opt-bin-ssh-no-such-file-or-directory-connection-closed%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








AireSine is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















AireSine is a new contributor. Be nice, and check out our Code of Conduct.













AireSine is a new contributor. Be nice, and check out our Code of Conduct.












AireSine is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110094%2fsftp-m10-1-1-2-exec-opt-bin-ssh-no-such-file-or-directory-connection-closed%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

GameSpot

日野市

Tu-95轟炸機