{"id":318,"date":"2008-06-21T11:50:12","date_gmt":"2008-06-21T08:50:12","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=318"},"modified":"2008-06-21T11:51:01","modified_gmt":"2008-06-21T08:51:01","slug":"speed-up-multiple-ssh-connections-to-the-same-destination","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/","title":{"rendered":"Speed up multiple ssh connections to the same destination"},"content":{"rendered":"<p>When you are doing multiple ssh connections to one host there&#8217;s a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don&#8217;t open any new ones. All that is done via ControlMaster and ControlPath settings for <a href=\"http:\/\/www.openbsd.org\/cgi-bin\/man.cgi?query=ssh_config&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html\">ssh_config<\/a>.<\/p>\n<p><em>Example usage:<\/em><br \/>\nInside <strong>\/etc\/ssh\/ssh_config<\/strong><br \/>\n<code>ControlMaster auto<br \/>\nControlPath \/tmp\/%r@%h:%p<br \/>\n<\/code><\/p>\n<p><strong>Firsh ssh connection:<\/strong><br \/>\n<code>% ssh foobar@foo.bar.gr<br \/>\nPassword:<br \/>\nLinux foo.bar.gr 2.6.20.1-1-686 #1 SMP Sun Mar 4 12:44:55 UTC 2007 i686 GNU\/Linux<br \/>\nfoobar@foo:~$<br \/>\n<\/code><\/p>\n<p><strong>Second ssh connection:<\/strong><br \/>\n<code>% ssh -p 22 foobar@foo.bar.gr<br \/>\nLinux foo.bar.gr 2.6.20.1-1-686 #1 SMP Sun Mar 4 12:44:55 UTC 2007 i686 GNU\/Linux<br \/>\nfoobar@foo:~$<br \/>\n<\/code><br \/>\nNo password is asked and the connection opens up immediately.<\/p>\n<p>kudos to <a href=\"http:\/\/foss.ntua.gr\/forum\/index.php?action=profile;u=89\">apoikos<\/a> for telling me about this neat feature in <a href=\"http:\/\/www.fosscomm.gr\">fosscomm<\/a> \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are doing multiple ssh connections to one host there&#8217;s a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don&#8217;t open any new ones. All that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[6,5,3,8,4],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","hentry","category-encryption","category-internet","category-linux","category-networking","category-privacy"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"When you are doing multiple ssh connections to one host there&#039;s a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don&#039;t open any new ones. All that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#article\",\"name\":\"Speed up multiple ssh connections to the same destination | Into.the.Void.\",\"headline\":\"Speed up multiple ssh connections to the same destination\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2008-06-21T11:50:12+03:00\",\"dateModified\":\"2008-06-21T11:51:01+03:00\",\"inLanguage\":\"en-US\",\"commentCount\":6,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#webpage\"},\"articleSection\":\"Encryption, Internet, Linux, Networking, Privacy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#listItem\",\"name\":\"Speed up multiple ssh connections to the same destination\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#listItem\",\"position\":3,\"name\":\"Speed up multiple ssh connections to the same destination\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/\",\"name\":\"Speed up multiple ssh connections to the same destination | Into.the.Void.\",\"description\":\"When you are doing multiple ssh connections to one host there's a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don't open any new ones. All that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2008\\\/06\\\/21\\\/speed-up-multiple-ssh-connections-to-the-same-destination\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2008-06-21T11:50:12+03:00\",\"dateModified\":\"2008-06-21T11:51:01+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Speed up multiple ssh connections to the same destination | Into.the.Void.","description":"When you are doing multiple ssh connections to one host there's a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don't open any new ones. All that","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#article","name":"Speed up multiple ssh connections to the same destination | Into.the.Void.","headline":"Speed up multiple ssh connections to the same destination","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2008-06-21T11:50:12+03:00","dateModified":"2008-06-21T11:51:01+03:00","inLanguage":"en-US","commentCount":6,"mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#webpage"},"articleSection":"Encryption, Internet, Linux, Networking, Privacy"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#listItem","name":"Speed up multiple ssh connections to the same destination"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#listItem","position":3,"name":"Speed up multiple ssh connections to the same destination","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/","name":"Speed up multiple ssh connections to the same destination | Into.the.Void.","description":"When you are doing multiple ssh connections to one host there's a way to speed them up by multiplexing them. When you open the first network connection a special socket is created and then all other connections to the destination machine pass through the first network connection and don't open any new ones. All that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2008-06-21T11:50:12+03:00","dateModified":"2008-06-21T11:51:01+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"318","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:58:21","updated":"2026-10-21 09:37:37","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSpeed up multiple ssh connections to the same destination\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"Linux","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/"},{"label":"Speed up multiple ssh connections to the same destination","link":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/21\/speed-up-multiple-ssh-connections-to-the-same-destination\/"}],"views":7266,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}