티스토리 뷰

Nas

[iptime] 나스에 sshd 설치

풀짱 2020. 2. 12. 16:42

1. ipkg 설치

 

test -e /opt && mv /opt /opt.bak
mkdir -p /mnt/HDD1/opt && ln -sf /mnt/HDD1/opt /opt
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_0.99.163-10_arm.ipk ./data.tar.gz | tar -C / -xzvf -
mkdir -p /opt/etc/ipkg
echo "src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable" > /opt/etc/ipkg/armel-feed.conf
echo "src native http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable" >> /opt/etc/ipkg/armel-feed.conf

 

2. ssh 설치

 

ipkg update
ipkg install openssh
ipkg install openssh-sftp-server

/opt/bin/ssh-keygen -A

vi /opt/etc/openssh/sshd_config
# override default of no subsystems                                             
Subsystem       sftp    /opt/libexec/sftp-server -u 0002

#killall sftp-server

/opt/etc/init.d/S40sshd restart

'Nas' 카테고리의 다른 글

[iptime]torrent 서비스중 마크넷 오류  (0) 2020.02.12
[iptime] 비즈박스 설치  (0) 2020.02.12