• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Michele Neylon :: Pensieri

Michele Neylon :: Pensieri

Technology, Marketing, Domains, Thoughts

Force SSH over IPv4 or IPv6

July 29, 2012 by Michele Neylon 1 Comment

Vint Cerf IPv6 poster
Vint Cerf IPv6 poster

I’ve got an IPv6 connection at home via Sixxs which works pretty well.

Of course some of the time when I need to access certain machines from outside the office I’ll run into issues ie. I can get in over IPv4, but not over IPv6.

Other times the IPv6 connection from wherever I happen to be might not be as stable as the IPv4 one.

So being able to force an SSH connection over IPv4 (or over IPv6) is handy (and this is more for my own reference than anyone else’s!):

ssh -4 user@hostname

Will force the connection over IPv4, while:

ssh -6 user@hostname

will force it over IPv6.

Obviously you will need to be on an IPv6 enabled connection in order to SSH over IPv6.

Related Posts:

  • computer-code-screens
    Dodgy WordPress Developer Tactics
  • Instafest-mneylon-2023
    Another Year of Listening to Music Visualised (sort of)
  • distance-traveled
    The Irish Postal Service Failed Me!
  • Photo of old hand written letters on a desk with some pencils and pens
    I Sometimes Yearn For Simpler Times
  • ACDC-Dublin-Ticketmaster-Q
    The "Joys" of Acquiring Concert Tickets
  • Video thumbnail for youtube video cjow0xuytqs
    Matthew McConaughey on Uvalde Massacre

Filed Under: ipv6, Linux Tagged With: IP address, ipv4, ipv6, Protocols

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight. Read More…

Reader Interactions

Comments

  1. Jens says

    September 24, 2021 at 9:30 am

    Very Handy, thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

dotblog founder

Mastodon

Archives

  • Bluesky
  • Instagram
  • Threads
  • Twitter

Pages

  • About Me
  • About This Site
  • Archives
  • Comments Policy
  • Contact Me
  • Newsletter
  • Privacy

Blogroll

  • Blacknight Blog
  • Gianni Ponzi
  • Tom Doyle
  • Stewart Curry
  • My Mastodon

Stalking Links

Subscribe to Michele Neylon :: Pensieri

Blogroll

  • Blacknight Blog
  • Damien Mulley
  • Gianni Ponzi
  • Gordon Hudson
  • Grandad
  • My Mastodon
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Technology.ie Podcast
  • Tom Doyle

Sites

  • Business Travel Tips
  • Discount Coupon Codes
  • Domain News
  • Fat.ie – my diet blog
  • Film Posters
  • Film Reviews
  • Films
  • Free Desktop Wallpapers
  • Irish Blogger Discussion Forum
  • Irish Stamps
  • Movie Trailers and News
  • Paste.ie

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in