Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

Overcome SSH ‘Permission denied’ for long IBM i user profiles

February 6, 2015/4 Comments/in IBM i, PHP /by Alan Seiden

[UPDATED May 2023]

In IBM i releases before 7.4, IBM i’s Secure Shell (SSH) rejected connection attempts with user profile names longer than eight (8) characters. The error message can vary, but may be similar to “Permission denied, please try again” or “Failed to connect sshd.”

For those older releases (7.3 and earlier), you can allow user profiles longer than 8 characters by editing the file:
/QOpenSys/QIBM/UserData/SC1/OpenSSH/etc/sshd_config
and adding a new line containing the string:
ibmpaseforienv PASE_USRGRP_LIMITED=N

To apply your changes, end and then start the SSH server, like so:

1
2
ENDTCPSVR SERVER(*SSHD)
STRTCPSVR SERVER(*SSHD)

An alternative is to set the variable system-wide, to allow other PASE processes to use the improvement:

1
ADDENVVAR ENVVAR(PASE_USRGRP_LIMITED) VALUE('N') LEVEL(*SYS)

For more details about configuring SSH, see How to Configure and Use SSH on IBM i.

Tags: IBM i, IBMi, SSH, sshd, user profile
Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Alan Seiden https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Alan Seiden2015-02-06 23:59:412025-12-12 12:23:00Overcome SSH ‘Permission denied’ for long IBM i user profiles
Alan Seiden

About Alan Seiden

Alan works to preserve your investment in IBM enterprise systems by designing and implementing modernization strategies that leverage your existing business logic.

With a passion ...Read More

4 replies
  1. Leonardo Villalobos
    Leonardo Villalobos says:
    June 24, 2021 at 10:25 pm

    Hello Alan
    I also did a test and it didn’t work, finally add an environment variable and this worked.

    Reply
    • Alan Seiden
      Alan Seiden says:
      June 24, 2021 at 10:30 pm

      Glad you eventually got it working.

      Reply
  2. Leonardo Villalobos
    Leonardo Villalobos says:
    June 24, 2021 at 9:36 am

    Hi Alan I am trying to test this configuration on my box with IBM i 7.3 and it is not working, does this new line have to go in a specific place in the configuration file?

    Reply
    • Alan Seiden
      Alan Seiden says:
      June 24, 2021 at 9:35 pm

      Hi, Leonardo, there’s no specfic place, but the new line can be added to the end of the file. I did this successfully just last week. Did you remember to end and restart the *SSHD server afterward?

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • Mitigating the eMudhra Intermediate CA Compromise with IBM i
  • Critical php2shell Security Update Available in Seiden PHP+ Server
  • Moving to IBM i 7.6? An SDA Alternative with VS Code and IBM Bob
  • What’s New with Mapepire Database Connector for IBM i
  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Access Modern Security for IBM i and Connected Web Environments
  • IBM i: A Natural Platform for Agentic AI
  • PHP on IBM i in 2026: The Modernization Engine

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: Free webinars sponsored by COMMON Europe (open to all) Link to: Free webinars sponsored by COMMON Europe (open to all) Free webinars sponsored by COMMON Europe (open to all) Link to: Video promo for WMCPA IBM i conference: March 10-12, 2015 Link to: Video promo for WMCPA IBM i conference: March 10-12, 2015 Video promo for WMCPA IBM i conference: March 10-12, 2015
Scroll to top Scroll to top Scroll to top