[Bug 2069305] Re: scp fails to copy files from sysfs

2024-06-14 Thread Mitchell Dzurick
** Changed in: openssh (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069305

Title:
  scp fails to copy files from sysfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069305/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2069305] Re: scp fails to copy files from sysfs

2024-06-14 Thread Mitchell Dzurick
To be complete, I also tried openssh-server_9.3p1-1ubuntu3.3 and see
this issue on noble.

Which leaves something changed between openssh-client 8.9 and 9.3 to
cause this behavior.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069305

Title:
  scp fails to copy files from sysfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069305/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2069305] Re: scp fails to copy files from sysfs

2024-06-14 Thread Mitchell Dzurick
Just for fun, I also tried the latest openssh-client that we have in
Jammy and see it works too -

# wget 
https://launchpad.net/ubuntu/+archive/primary/+files/openssh-client_8.9p1-3ubuntu0.7_amd64.deb
# dpkg -i ./openssh-client_8.9p1-3ubuntu0.7_amd64.deb
# scp 
root@localhost:/sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
 .
root@localhost's password: 
BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c  100%   
2027.4KB/s   00:00

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069305

Title:
  scp fails to copy files from sysfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069305/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2069305] Re: scp fails to copy files from sysfs

2024-06-14 Thread Mitchell Dzurick
Thank you for taking the time to make this bug Alfonso!

I can reproduce this in a noble-vm very easily.

$ lxc launch ubuntu:noble n-vm --vm
$ lxc shell n-vm
# rm /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
# sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' 
/etc/ssh/sshd_config
# echo "root:pass" | chpasswd
# systemctl restart ssh
# scp 
root@localhost:/sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
 .

However it's not just every file in /sys/, there are some files you can
still scp. For example:

# scp root@localhost:/sys/firmware/efi/runtime .

You can also cp the efi variable file and then scp it fine.
# cp /sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c ./
# scp root@localhost:/root/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c ./

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069305

Title:
  scp fails to copy files from sysfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069305/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs