{"id":730,"date":"2009-04-10T13:09:39","date_gmt":"2009-04-10T18:09:39","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=730"},"modified":"2010-10-21T10:00:05","modified_gmt":"2010-10-21T15:00:05","slug":"openssh-2","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=730","title":{"rendered":"OpenSSH"},"content":{"rendered":"<p>OpenSSH<br \/>\n\u2022SunSolve random patches 112438-01<br \/>\n#patchadd 112438-01<\/p>\n<p>\u2022Install \/dev\/random<br \/>\n#pkgadd -d ANDIrand-0.7-5.8-sparc-1.pkg<br \/>\n(www.cosy.sbg.ac.at\/~andi\/)<\/p>\n<p>\u2022Install<br \/>\nopenssh-3.p1-sol8-sparc-local<br \/>\nopenssl-0.9.6d-sol8-sparc-local<br \/>\ntcp_wrapper-7.6-sol8-sparf-local<br \/>\nzlib.1.1.4-sol8-sparc-local<br \/>\noptional:<br \/>\nperl-5.6.1-sol8-sparc-local<br \/>\nprngd-0.9.25-sol8-sparc-local<br \/>\negd-0.8.-sol8-sparc-local<\/p>\n<p>\u2022Put \/usr\/local\/bin \/usr\/local\/sbin in the path<\/p>\n<p>\u2022Setup sshd user and the \/var\/emty directory<br \/>\n#mkdir \/var\/empty<br \/>\n#chown root:sys \/var\/empty<br \/>\n#chmod 755 \/var\/empty<br \/>\n#groupadd sshd<br \/>\n#useradd -g sshd -c &#8216;sshd privsep&#8217; -d \/var\/empty -s \/bin\/false sshd<\/p>\n<p>\u2022Setup tcp wrappers<br \/>\n\/etc\/hosts.deny:\tsshd:ALL<br \/>\n\/etc\/hosts.allow:\t<\/p>\n<p>\u2022Install ssh and sshd<br \/>\n#ssh-keygen -t rsa1 -f \/usr\/local\/etc\/ssh_host_key -N &#8220;&#8221;<br \/>\n#ssh-keygen -t dsa -f \/usr\/local\/etc\/ssh_host_dsa_key -N &#8220;&#8221;<br \/>\n#ssh-keygen -t rsa -f \/usr\/local\/etc\/ssh_host_rsa_key -N &#8220;&#8221;<\/p>\n<p>\u2022Setup scripts to start sshd<br \/>\nvi \/etc\/init.d\/sshd<br \/>\n#chmod 555 \/etc\/init.d\/sshd<br \/>\n#ln -s \/etc\/init.d\/sshd \/etc\/rc2.d\/S98sshd<\/p>\n<p>Lazy ssh authentication (ssh2)<br \/>\n* Login the source machine and cd to home directory.<br \/>\n* dev$ ssh-keygen -t rsa<br \/>\n* dev$ scp .ssh\/id_rsa.pub jmli@oakdev1:~\/.ssh<\/p>\n<p>* Login the target machine and cd to home directory.<br \/>\n* sev$ cd .\/ssh<br \/>\n* sev$ cat id_rsa.pub >> authorized_keys2<br \/>\n* sev$ chmod go-w authorized_keys2<\/p>\n<p>\u2022 Usage Examples<br \/>\nscp file.jar jmli@oakdev1:\/tmp<\/p>\n<p>\u2022sshd_config<br \/>\n(For Linx)<br \/>\nUsePrivilegeSeparation no<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenSSH \u2022SunSolve random patches 112438-01 #patchadd 112438-01 \u2022Install \/dev\/random #pkgadd -d ANDIrand-0.7-5.8-sparc-1.pkg (www.cosy.sbg.ac.at\/~andi\/) \u2022Install openssh-3.p1-sol8-sparc-local openssl-0.9.6d-sol8-sparc-local tcp_wrapper-7.6-sol8-sparf-local zlib.1.1.4-sol8-sparc-local optional: perl-5.6.1-sol8-sparc-local prngd-0.9.25-sol8-sparc-local egd-0.8.-sol8-sparc-local \u2022Put \/usr\/local\/bin \/usr\/local\/sbin in the path \u2022Setup sshd user and the \/var\/emty directory #mkdir \/var\/empty #chown root:sys \/var\/empty &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=730\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[33],"tags":[],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-unix"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-bM","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=730"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":1838,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions\/1838"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}