This provides a compile time mode where scp would refuse write operations. As a result, scp would treat the server as readonly.
Created attachment 174 [details] adds readonly flag to scp this change applies to scp.c
What about command: $ ssh user@host '( cat > FILE_NAME_ON_REMOTE_HOST )' < FILE_NAME_ON_LOCAL_HOST this is same as: $ scp FILE_NAME_ON_LOCAL_HOST user@host:FILE_NAME_ON_REMOTE_HOST
like most security issues, this change would not be sufficient by itself. In my setup I've made other changes that make cat unavailable (i.e. by using chroot ()).
Mass change of RESOLVED bugs to CLOSED