On amd64, ld-linux-x86-64.so.2 doesn't get copied, as it resides in /lib64
instead of /lib.
This results in the following log entries:
session opened for user scponly by (uid=0)
running: /usr/bin/scp -t . (username: scponly(xxx)
failed: /usr/bin/scp -t . with error No such file or directory(2)
Copying the lib resolves the issue. Sorry no patch, weekend now ;-)
Steps to Reproduce:
1. emerge scponly
2. attempt login (fail)
'connection closed' on client
login to chrooted scponly(c)
1. copy /lib64/ld-linux-x86-64.so.2 to chroot
2. attempt login (succeed)
neglected to post `emerge info` like the bug report page told you to
/lib/ld-linux-x86-64.so.2 and /lib64/ld-linux-x86-64.so.2 should be symlinks
1. It says 'where appropriate'. I don't think it's appropriate.
> /lib/ld-linux-x86-64.so.2 and /lib64/ld-linux-x86-64.so.2 should be symlinks
Maybe you should verify.