Hi Patrik,
I presume this is t=still current ...
https://www.ibm.com/support/pages/configuring-ibm-i-ssh-sftp-and-scp-clients-use-public-key-authentication
Prerequisites
5733SC1 IBM Portable Utilities for i5/OS *BASE & Option 1
57XXSS1 Option 33 (Portable Application Solutions Environment)
Assumptions
This document assumes the following:
The IBM i is running at V5R4 or higher of the operating system.
A user profile consisting of 8 characters or less to store the OpenSSH related objects needed to communicate with remote SSH servers.
The remote host is configured to accept and process inbound ssh connections.
Cheers
Don
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Patrik Schindler
Sent: Thursday, December 21, 2023 10:17 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: sFTP User Name - does it need to match user name on the server
Hello Don,
Am 21.12.2023 um 05:11 schrieb Don Brown via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>:
I need to set up a sFTP file transfer.
I have been provided a user name and password, the user is admin
I used the ssh -T admin@<hostname> to add the site to the known hosts file.
Does the user profile name on the IBMi need to be the same
No. Therefore you need to add the username@ part. If you don't do this, the local username is used implicitly.
or can I use a user name of SFTPUSER or something similar with a maximum length of 8 characters ?
Yes. I don't think you're restricted to 8 chars, also.
As an example can I log in as SFTPUSER (or change the current active
profile to SFTPUSER) and then use sftp admin@<hostname>
Yes.
I thought this was fine but I just can't find an explicit answer.
Because it's implicit. ;-)
:wq! PoC
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.