"permission denied please try again" while doing SSH.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Anil Khanna
Registered Member
Posts: 15
Joined: Wed Aug 07, 2013 12:09 am

"permission denied please try again" while doing SSH.

Post 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.
User avatar
zum13
Registered Member
Posts: 82
Joined: Thu May 04, 2023 12:58 am

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

Post 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.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

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

Post 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?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anil Khanna
Registered Member
Posts: 15
Joined: Wed Aug 07, 2013 12:09 am

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

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
Anil Khanna
Registered Member
Posts: 15
Joined: Wed Aug 07, 2013 12:09 am

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

Post 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?
Anil Khanna
Registered Member
Posts: 15
Joined: Wed Aug 07, 2013 12:09 am

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

Post by Anil Khanna »

Off Topic: And why it's called "daemon"?
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”