7628平台Openwrt14.07更新opkg软件源,同时添加ssh、scp等基本功能
作者:互联网
前言:由于Openwrt14.07在7628上不在维护,默认地址无法通过opkg更新软件
- 修改opkg软件源,修改
/etc/opkg.conf
文件为以下内容
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz barrier_breaker_packages http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base
#src/gz barrier_breaker_packages http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages
#src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/base
# src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/packages
# src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/luci
# src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/routing
# src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/telephony
# src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/management
# src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7628/packages/oldpackages
- 通过
opkg update
更新软件列表 - 安装ssh和scp依赖的ipk包
opkg update
opkg install openssh-server
opkg install openssh-client
root@OpenWrt:/etc# opkg update
Downloading http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_packages.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_base.
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc#
root@OpenWrt:/etc# opkg install openssh-client
Installing openssh-client (6.6p1-1) to root...
Downloading http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages/openssh-client_6.6p1-1_ramips_24kec.ipk.
Installing libopenssl (1.0.2f-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base/libopenssl_1.0.2f-1_ramips_24kec.ipk.
Installing zlib (1.2.8-1) to root...
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base/zlib_1.2.8-1_ramips_24kec.ipk.
Configuring zlib.
Configuring libopenssl.
Configuring openssh-client.
root@OpenWrt:/etc#
root@OpenWrt:/# opkg install openssh-server
Installing openssh-server (6.6p1-1) to root...
Downloading http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages/openssh-server_6.6p1-1_ramips_24kec.ipk.
Installing openssh-keygen (6.6p1-1) to root...
Downloading http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages/openssh-keygen_6.6p1-1_ramips_24kec.ipk.
Configuring openssh-keygen.
Configuring openssh-server.
root@OpenWrt:/#
- 启动sshd服务
/etc/init.d/sshd enable
/etc/init.d/sshd start
结束:至此大家可以通过scp
传输文件、通过SSH
登陆7628
后台了
标签:packages,barrier,root,Openwrt14.07,ssh,breaker,ramips,scp,openwrt 来源: https://blog.csdn.net/yehe111/article/details/115375948