Page 1 of 1

"permission denied please try again" while doing SSH.

Posted: Thu Aug 24, 2023 11:49 am
by Anil Khanna
Hi,

I've been trying to do SSH a mainframe from my laptop. It always fails with "permission denied please try again".

Any guidance is appreciated.

Re: "permission denied please try again" while doing SSH.

Posted: Thu Aug 24, 2023 5:22 pm
by zum13
Assuming that your SSH command is working for other target systems and you've a valid userid/password, then it would probably be best to go through your local support in order to get the problem resolved. "Permission denied" usually implies that you don't have access to something and there are a multitude of reasons for that ranging from misconfiguration through to local security policy, but they're generally going to be things you can't change yourself.

Re: "permission denied please try again" while doing SSH.

Posted: Fri Aug 25, 2023 10:23 pm
by Anuj Dhawan
As zum13 has said, there are number of dots which should get connected well to make SSH working. Without much information and logs, it's tough to help. Please answer the following questions:

1. Is the mainframe you are working with, has SSH daemon running?
2. Are the SSH keys generated and in sync?
3. pub-key is already used as the authorized-key?
4. Where is the mainframe - 'cloud instance' or 'on-prem'?
5. Do you have OpenSSH running on laptop?

Re: "permission denied please try again" while doing SSH.

Posted: Tue Aug 29, 2023 3:34 pm
by Anil Khanna
Hi Anuj

Here are the answer for your questions:

1. How do we check if the daemon is running?
2. SSH keys are generated and are in sync.
3. pub-key is added as authorized key.
4. ZD&T, we are using.
5. I'm not sure.

Re: "permission denied please try again" while doing SSH.

Posted: Tue Aug 29, 2023 8:17 pm
by Robert Sample
1. How do we check if the daemon is running?
If you have permissions to do this, go into a Unix OMVS shell and enter the command

Code: Select all

ps -ef | grep "sshd"
If you get a line back, then the daemon is running.

Re: "permission denied please try again" while doing SSH.

Posted: Thu Feb 08, 2024 9:40 pm
by Anil Khanna
It's an old post though, I've left working on it back than. But it's back now.

Thanks Robert, that gives me a line back, so daemon is running?

Re: "permission denied please try again" while doing SSH.

Posted: Thu Feb 08, 2024 9:41 pm
by Anil Khanna
Off Topic: And why it's called "daemon"?