Forcing IPv4 with SFTP

Chris Rapier rapier at psc.edu
Thu Sep 20 06:37:03 EST 2007


I didn't even think of using the -o format. Thanks for the insight.


Bob Proulx wrote:
> Chris Rapier wrote:
>> I'm wondering if I'm missing something. With ssh and scp you can force 
>> the use of IPv4 with the -4 option. This doesn't seem to be an option or 
>> sftp. Is this by design or oversight?
> 
> Use the long option name.  All of the options listed in ssh_config(5)
> are available this way.
> 
>      AddressFamily
>              Specifies which address family to use when connecting.  Valid
>              arguments are "any", "inet" (Use IPv4 only) or "inet6" (Use IPv6
>              only.)
> 
> For IPv4 only you would use:
> 
>   sftp -oAddressFamily=inet example.com
> 
> Bob
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


More information about the openssh-unix-dev mailing list