- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing Path for sshd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 01:46 AM - last edited on 09-16-2024 02:08 AM by support_s
09-02-2004 01:46 AM - last edited on 09-16-2024 02:08 AM by support_s
Changing Path for sshd
We have a problem where we would like to change the path that is available when we run ssh commands. For example running ssh root@target java.
If we run a ssh root@target set, we can see that our path is set to /usr/sbin:/opt/ssh/bin.
We would like to expand the path so that it includes the system $PATH variable. This is so that we can invoke programs that are not available in the sshd path.
We are using HP SSH A 03.81.002_HP-UX_B.11.11
- Tags:
- iLO_OA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 01:53 AM
09-02-2004 01:53 AM
Re: Changing Path for sshd
PATH for ssh is set during compilation look at:
to file sshd_config:
In my system:
# This sshd was compiled with PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bi
n:/usr/bin:/bin
I think that if you want different PATH you must get source OpenSSH code and compile it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 02:41 AM
09-02-2004 02:41 AM
Re: Changing Path for sshd
As said before, PATH is a compiled option. Look at sshd_config. It should have a line saying that "This sshd was compiled with PATH..".
I compile ssh packages with all the customizations I need. Other than with the previous releases which were not included with password expiry option, compiling the latest versions is not looking too bad.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 07:06 PM
09-02-2004 07:06 PM
Re: Changing Path for sshd
I had a problem just recently where a system had Cobol installed, and it used the "scp" command to do something in the compiler, hence when users tried to "scp" files to/from the server it failed.
The solution was to copy the users ".profile"'s to a config file, and then edit the settings to suit.
An extract from the man page:
"-F configfile
Specifies an alternative per-user configuration file. If a con-
figuration file is given on the command line, the system-wide
configuration file (/etc/ssh/ssh_config) will be ignored. The
default for the per-user configuration file is $HOME/.ssh/config."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 08:50 PM
09-02-2004 08:50 PM
Re: Changing Path for sshd
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin
IF we want to change then rebuild is needed. ssh man page for PATH say's as,
It is default and test on config file is not supported to get modified PATH
compile & Rebuild is needed for your requirement