{"id":527,"date":"2007-09-23T17:23:24","date_gmt":"2007-09-23T17:23:24","guid":{"rendered":"http:\/\/www.bartbusschots.ie\/blog\/?p=527"},"modified":"2014-08-04T17:57:42","modified_gmt":"2014-08-04T17:57:42","slug":"cvs-over-ssh-on-a-non-standard-port","status":"publish","type":"post","link":"https:\/\/www.bartbusschots.ie\/s\/2007\/09\/23\/cvs-over-ssh-on-a-non-standard-port\/","title":{"rendered":"CVS over SSH on a Non-Standard Port"},"content":{"rendered":"<p>If you access CVS over SSH you will know that you have to do two things to get it working. Firstly, you have to set the <code>CVS_RSH<\/code> environment variable to the location of your SSH binary. Secondly you have to use the <code>:ext:<\/code> scheme for the <code>CVSROOT<\/code> environment variable (or <code>-d<\/code> flag). The thing is, there is no place in the <code>:ext:<\/code> scheme to set a port number! This means that CVS will try to open the SSH connection to the specified server on the standard SSH port. I don&#8217;t like running SSHD on the standard port, I much prefer to stick it on a non-standard port, but does that mean I can&#8217;t use CVS over SSH? Well, if you leave things to CVS then yes, but luckily OpenSSH is not as retarded as CVS and provides you with a simple mechanism for over-ridding the default port on a per-host basis. The key is to add an entry for the host in question to your <code>~\/.ssh\/config<\/code> file. The sample below tells SSH to use port 123 as the default port when connecting to the server <code>my.machine.ie<\/code>:<\/p>\n<pre>\r\nHost my.machine.ie\r\n  Port 123\r\n<\/pre>\n<p>This will work on Unix, Linux and OS X as well as through <a href=\"http:\/\/www.cygwin.com\/\" target=\"_blank\">Cygwin<\/a> on Windows.<\/p>\n<p>[tags]SSH, CVS, OpenSSH[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you access CVS over SSH you will know that you have to do two things to get it working. Firstly, you have to set the CVS_RSH environment variable to the location of your SSH binary. Secondly you have to use the :ext: scheme for the CVSROOT environment variable (or -d flag). The thing is, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":[12,446],"tags":[479,408,466,478,458],"series":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-computers-tech","category-sysadmin","tag-cvs","tag-open-source","tag-openssh","tag-source-control","tag-tutorial"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7t9xK-8v","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/comments?post=527"}],"version-history":[{"count":1,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":7599,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/527\/revisions\/7599"}],"wp:attachment":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/media?parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/categories?post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/tags?post=527"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/series?post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}