IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  formatting SFTP command

    Posted 04/12/24 10:42 AM

    how do you specify an email address as the user ID in the SFTP command?

    SFTP helpdesk@florenceco.org@(server name)



    ------------------------------
    David Strawn
    ------------------------------


  • 2.  RE: formatting SFTP command

    Posted 04/15/24 09:06 AM

    Hi David,

    I haven't tested this in IBM i, but I found this recommendation on stackexchange.  Please give it a try and update us whether it works or not!

    Pass the user name through the -o User option, or through the equivalent User directive in the client configuration file (~/.ssh/config).

    sftp -o Port=8777 -o User=user@example.com example.com
    

    This applies to ssh, scp and sshfs as well. Using the configuration file instead of -o options has the advantage of also working with tools that call ssh and don't let you easily pass command line options if at all.



    ------------------------------
    Steven Riedmueller
    Certified IBM i Admin
    Speaker, Mentor, and Advocate
    ------------------------------