SSH tunneling with Synology
Posted
by
dvkch
on Server Fault
See other posts from Server Fault
or by dvkch
Published on 2013-02-08T17:16:38Z
Indexed on
2013/06/28
4:23 UTC
Read the original article
Hit count: 2861
I try to tunnel SMB and AFP services through SSH to acces my NAS shares on my machine. I already do it successfully with my ReadyNAS using the following command line (ran as my user on my mac) :
ssh -Nf -p 22 -c 3des-cbc USER@SERVER -L 8888/127.0.0.1/548 -L 9999/127.0.0.1/139
but I cannot reproduce the same with the Synology NAS. Connecting using this command gives me the following error :
channel 4: open failed: administratively prohibited: open failed
I also tried with a windows client (used bitvise tunneler): it works with the ReadyNAS but not the Synology and get the following error msg :
server denied request for client-side server-2-client forwarding on 127.0.0.1:139
I modified /etc/ssh/sshd_config
:
MaxSessions 10
PasswordAuthentication yes
PermitEmptyPasswords no
AllowTcpForwarding yes
GatewayPorts yes
PermitTunnel yes
Is there any way to make it work ? I must add that I can successfully connect via SSH to the NAS so I donnot think this is a firewall issue between the Synology and my computer.
Thanks for you answers
© Server Fault or respective owner