[GH-ISSUE #305] I can't use scp #76

Closed
opened 2026-05-07 00:18:28 +02:00 by BreizhHardware · 1 comment

Originally created by @SmallL-U on GitHub (May 7, 2022).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/305

When I use command scp with internet I get a message "Subsystem request failed on channel 0"
scp with -v (archlinux)

debug1: Sending subsystem: --user root --host 192.168.101.2 --osh scp --scp-cmd sftp
subsystem request failed on channel 0
scp: Connection closed

When I use this command in LAN, I get this (fedora)

debug1: Sending command: --user root --host 192.168.101.2 --osh scp --scp-cmd scp#-v#-r#-f#~/test.txt
>>>Sorry, but even if you have ssh access to root@192.168.101.2:22, you still need to be granted specifically for scp

it connected successfully in LAN,and it couldn't connect in internet
I think it may have something to do with the relevant settings of my system?
my OS is :ArchLinux
how can I solve it?
thanks

Originally created by @SmallL-U on GitHub (May 7, 2022). Original GitHub issue: https://github.com/ovh/the-bastion/issues/305 When I use command scp with internet I get a message "Subsystem request failed on channel 0" scp with -v (archlinux) ```` debug1: Sending subsystem: --user root --host 192.168.101.2 --osh scp --scp-cmd sftp subsystem request failed on channel 0 scp: Connection closed ```` When I use this command in LAN, I get this (fedora) ```` debug1: Sending command: --user root --host 192.168.101.2 --osh scp --scp-cmd scp#-v#-r#-f#~/test.txt >>>Sorry, but even if you have ssh access to root@192.168.101.2:22, you still need to be granted specifically for scp ```` it connected successfully in LAN,and it couldn't connect in internet I think it may have something to do with the relevant settings of my system? my OS is :ArchLinux how can I solve it? thanks
Author
Owner

@SmallL-U commented on GitHub (May 7, 2022):

Solved:
Secure copy protocol (SCP)

Install, configure and start OpenSSH. It contains the scp utility to transfer files.

More features are available by installing additional packages, for example rsshAUR or scponly described below.
Note: Since OpenSSH 9.0 the scp utility uses the SFTP protocol by default. The -O option must be used to use the legacy SCP protocol.

<!-- gh-comment-id:1120131267 --> @SmallL-U commented on GitHub (May 7, 2022): Solved: Secure copy protocol (SCP) [Install](https://wiki.archlinux.org/title/Install), configure and [start](https://wiki.archlinux.org/title/Start) [OpenSSH](https://wiki.archlinux.org/title/OpenSSH). It contains the scp utility to transfer files. More features are available by installing additional packages, for example [rssh](https://aur.archlinux.org/packages/rssh/)AUR or [scponly](https://archlinux.org/packages/?name=scponly) described below. Note: Since OpenSSH 9.0 the scp utility uses the SFTP protocol by default. The -O option must be used to use the legacy SCP protocol.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#76
No description provided.