Got a new VDI under Win 11 and must reinstall everything.
Configured the environment on the new VDI by the following steps:
1 – create folder “.ssh” on the C:\Users\XXXX
2- via CMD go on the folder C:\Users\XXXX\.ssh
3- Launch the comand ssh-keygen.exe -f C:\Users\XXXX\.ssh/team_build
In syncz.yml file set the Keyfile value to C:\Users\XXXX\.ssh\team_build
Run the TeamBuild syncz command and was prompted for password - looks like SSH key not found? How to solve the problem?
Endevor V19
Endevor TeamBuild
Syncz tool is used to synchronize files between your workstation and mainframe.
Instruction for Syncz authentication can be found in here.
The generated public key contents was not appended to remote ~/.ssh/authorized_keys file.
Perform the syncz authentication setup process:
1) Generate a key pair (either RSA or ed25519 key pair) using ssh-keygen command
2) Copy the generated public key to remote mainframe Lpar (append the public key contents from local workstation to remote ~/.ssh/authorized_keys)
Command example (for ed25519 public key):
cat ~/.ssh/id_ed25519.pub | ssh username@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
3) Setup permission 700 for remote home (~) and .ssh (~/.ssh) directory, and set permission 600 for file ~/.ssh/authorized_keys
4) Verify the successful setup of key authentication (ssh to remote mainframe Lpar without any password prompt)
$ ssh user@host
-------------------------------------------------------
* Welcome to UNIX System Services *
-------------------------------------------------------
Then issue syncz command.