Enable SSH Server

來源:互聯網
上載者:User
在etc/rc.d/rcS檔案中增加配置IP的命令:ifconfig eth0 192.168.7.236 同時開啟SSH服務:/etc/rc.d/init.d/sshd start第一次執行時間較長,因為會產生一些rsa檔案。 更好的方法:在/etc/rc.d/rc.conf檔案的cfg_servers中增加sshdall_services="mount-proc-sys mdev udev hostname devfsd depmod modules filesystems syslog network inetd portmap dropbear sshd boa smb dhcpd settime qtopia watchdog gtk2 pango"all_services_r="pango gtk2 watchdog qtopia settime dhcpd smb boa sshd dropbear portmap inetd network syslog filesystems modules depmod devfsd hostname udev mdev mount-proc-sys" cfg_services="mount-proc-sys  udev hostname  depmod modules filesystems syslog network inetd portmap qtopiasshd "   #在這裡增加開機啟動的服務 cfg_services_r="   qtopia       portmap inetd network syslog filesystems modules depmod  hostname udev  mount-proc-sys" export HOSTNAME="nxp"        #設定主機名稱export NTP_SERVER=""export MODLIST=""export RAMDIRS=""export TMPFS="tmpfs"export TMPFS_SIZE="512k"export READONLY_FS=""export INETD_ARGS=""export BOA_ARGS=""export SMBD_ARGS=""export NMBD_ARGS=""export DHCP_ARG=""export DEPLOYMENT_STYLE="NFS"export SYSCFG_DHCPC_CMD="udhcpc -b -i "export DROPBEAR_ARGS=""# net interface 0export SYSCFG_IFACE0=yexport INTERFACE0="eth0"             #設定網卡export IPADDR0="dhcp" rc.conf這個檔案很重要,可以進行很多配置。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.