I am going to try the config file.
I ran
touch ~/.ssh/config
chmod 600 ~/.ssh/config

EDTF '/home/ROB/.ssh/config'
Host gdl57
HostName gdl57.dekko-1
User rob
IdentityFile ~/.ssh/rob_gdisys.pub
Which begs the question: Do I use the private key or the public key?
Well, I tried both. I still get prompted for the password.

So I did some more reading and tried this:
PS C:\WINDOWS\system32> Get-Service ssh-agent

Status Name DisplayName
------ ---- -----------
Stopped ssh-agent OpenSSH Authentication Agent

PS C:\WINDOWS\system32> Start-Service ssh-agent
Start-Service : Service 'OpenSSH Authentication Agent (ssh-agent)' cannot be started due to the following error:
Cannot start service ssh-agent on computer '.'.
At line:1 char:1
+ Start-Service ssh-agent
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

PS C:\WINDOWS\system32> Get-Service ssh-agent | Select StartType


PS C:\WINDOWS\system32> Get-Service -Name ssh-agent | Set-Service -StartupType Automatic
PS C:\WINDOWS\system32> Start-Service ssh-agent
PS C:\WINDOWS\system32> Get-Service ssh-agent

Status Name DisplayName
------ ---- -----------
Running ssh-agent OpenSSH Authentication Agent

Now when I try
ssh gdl57
I get:
ssh: connect to host gdl57.dekko-1 port 22: Connection refused

So I asked for more detail:
ssh -vvv gdl57
OpenSSH_8.0p1, OpenSSL 1.1.1c 28 May 2019
debug1: Reading configuration data /home/ROB/.ssh/config
debug1: /home/ROB/.ssh/config line 1: Applying options for gdl57
debug1: Reading configuration data /QOpenSys/QIBM/ProdData/SC1/OpenSSH/etc/ssh_config
debug2: resolving "gdl57.dekko-1" port 22
debug2: ssh_connect_direct
debug1: Connecting to gdl57.dekko-1 [] port 22.
debug1: connect to address port 22: Connection refused
ssh: connect to host gdl57.dekko-1 port 22: Connection refused

cat ~/.ssh/known_hosts
gdl57.dekko-1, ecdsa-sha2-nistp256 <redacted>
gdl57 ecdsa-sha2-nistp256 <redacted, matches redacted information on line immediately above>


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.