SOLARIS系统下SSH安装和自动运行

2025-05-29 0 66

先用FTP到ftp.sunfreeware.com网站上down个 ssh-3.2.5.tar.gz.到/opt下

#gunzip ssh-3.2.5.tar.gz

#tar –xvf ssh-3.2.5.tar

#ln –s ssh-3.2.5 ssh

#cd ssh

#./configure

#make

#make install

#make clean

#ssh-keygen2 -b 1024

要输入密码,给它就行了。我也不知道用做什么。

#touch /etc/init.d/autossh

#vi /etc/init.d/autossh

echo "now the ssh will be started automaticly"

SSH_HOME=/opt/ssh

export SSH_HOME

su – root -c "$SSH_HOME/startup/solaris/sshd2 start" $

echo "ssh start has be done"

#chmod 777 /etc/init.d/autossh

#ln –s /etc/ini.d/autossh /etc/rc2.d/S99sshd

#chmod 744 /etc/rc2.d/S99sshd

重启就行了。在客户端用SSH(WINDOWS)就行了。

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 SOLARIS系统下SSH安装和自动运行 https://www.kuaiidc.com/87916.html

相关文章

发表评论
暂无评论