How to set ascii mode in sftp

From: Dave Martini 1 (martini_at_mrpeabody.llnl.gov)
Date: 10/10/05

  • Next message: Eswar Panchu: "Problem with cdrom"
    Date: Mon, 10 Oct 2005 09:25:34 -0700 (PDT)
    To: sunmanagers@sunmanagers.org
    
    

    I'm using ssh and sftp into a Solaris 9 machine.

    With ftp I can set the transfer mode between ascii and binary like this

    ftp> ascii
    200 Type set to A.
    ftp> binary
    200 Type set to I.
    ftp>

    But in sftp I don't see that command available.

    sftp > ascii
    Invalid command.
    sftp > binary
    Invalid command.

    How do I switch between ascii and binary transfer mode in sftp or is
    it automatic?

    Thanks much!
    Dave Martini
    LLNL
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Eswar Panchu: "Problem with cdrom"

    Relevant Pages

    • SFTP File Transfer Mode
      ... I know that SFTP does an automatic transfer of files without providing ... an option for the transfer mode to change between ASCII and Binary. ...
      (comp.security.ssh)
    • Re: freebsd tar incompatible with linux?
      ... Jesse Woo wrote: ... ascii. ... transfer mode has been a problem ever since I saw ftp on an MS ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Secure Web Server Version 2.0 available for download
      ... Our problem is not with ftp, but with sftp which seems to only support ... stream_lf for ascii, where ftp is not so restricted. ... I must use IMAGE to send files to UNIX while the UNIX system ...
      (comp.os.vms)
    • SUMMARY: How to set ascii mode in sftp
      ... Pretty much people said with sftp the transfer mode is automatic ... With ftp I can set the transfer mode between ascii and binary like this ...
      (SunManagers)
    • Re: "get" function in HPs sftp fails sometimes
      ... The error was caused by "ascii" ... transfer mode which does not work for HP's sftp client. ... HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 5 ...
      (comp.os.vms)