Currently there is no way using sftp to transfer a symlink. The attached patch adds a command "getlink" that allows a symlink to be transferred.
Created attachment 168 [details] changes to implement getlink this patch includes changes to sftp-int.c
Created attachment 169 [details] implement the getlink command this includes changes to sftp-client.c
Created attachment 170 [details] implement the getlink command this includes changes to sftp.1
Created attachment 171 [details] implement the getlink command this includes changes to sft-client.h
Created attachment 172 [details] implement the getlink command include changes to sftp-server.c