Trying this from IBM i to my Windows 10 PC before dinging the server people.

I following the instructions at:
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
I used the method of launching Power Shell as an administrator.
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
Name : OpenSSH.Client~~~~0.0.1.0
State : Installed
Name : OpenSSH.Server~~~~0.0.1.0
State : Installed
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
Get-NetFirewallRule -Name *ssh*
Name : OpenSSH-Server-In-TCP
DisplayName : OpenSSH SSH Server (sshd)
Description : Inbound rule for OpenSSH SSH Server (sshd)
DisplayGroup : OpenSSH Server
Group : OpenSSH Server
Enabled : True
Profile : Any
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local

Then from my IBM i I ran:
CALL QP2TERM
mkdir /home/ROB
It already exists
chmod 755 /home/ROB
ssh-keygen -t rsa -N ""
This created two files in /home/ROB
rob_gdisys
rob_gdisys.pub
I am under the impression that these files should have been created in the /users/ROB/.ssh directory and not in /users/ROB.
DSPUSRPRF ROB
Home directory . . . . . . . . . . . . . . : /home/ROB

I copied rob_gdisys.pub to gdl57 C:\Users\rob\.ssh Then I copied it to authorized.keys in that same directory. authorized.keys did not previously exist.

Back on the i I ran
CALL QP2TERM
ssh -T rob@gdl57.dekko-1
The first time I got the usual
The authenticity of host 'somehost (x.x.x.x)' can't be established.
. key fingerprint is RSA.
Are you sure you want to continue connecting (yes/no)?
I took the yes option
/home/ROB/.ssh/known_hosts now has
gdl57.dekko-1,10.10.9.30...
added to it.
I was able to successfully run
dir \users\rob\*.* >\users\rob\testoutput.txt
I checked for the existence of the testoutput.txt file on the PC and it's there.

CALL QP2TERM
ssh -T rob@gdl57.dekko-1
still keeps asking me for the password.

So I tried this:
COPY OBJ('/home/ROB/rob_gdisys*') TODIR('/home/ROB/.ssh')
2 objects copied.
But I still keep getting prompted for the password.

On the PC I tried
Stop-Service sshd
Start-Service sshd
But I still keep getting prompted for the password.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.