- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Unexpected messages when using ssh and rlogin
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
06-10-2003 09:44 PM
06-10-2003 09:44 PM
Unexpected messages when using ssh and rlogin
root: command not found
root: Undefined variable
The remote login works fine, but we have these messages.
I also have a question about user environments. When we remote login via ssh or rlogin does the user's environment get setup? i.e. does the .cshrc get executed? For example, our users use the c-shell. So, when we remote login, should we have history and all the other common features of the shell environment? Oh, and could those messages have anything to do with the fact that rlogin and ssh are suid root?
Any help would be greatly appreciated. I would really like to get rid of those messages!!
Thanks,
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 01:14 AM
06-12-2003 01:14 AM
Re: Unexpected messages when using ssh and rlogin
What does ssh_config look like on your server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:47 PM
06-12-2003 06:47 PM
Re: Unexpected messages when using ssh and rlogin
Have a look at athis thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91a644f56197d711abdc0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:52 PM
06-12-2003 06:52 PM
Re: Unexpected messages when using ssh and rlogin
It has to do with environments and how rlogin and ssh work.
When you rlogin or ssh to another server, even if you have exchanged public keys you don't get an environment on the target server.
That environment must be set in the script you are running, which must be referred to by its full path name.
ssh server1 "cp /etc/issue /tmp/issue"
probably won't work, because you have no PATH variable and this command doesn't know where to look for the cp command.
Your script needs to define everything, every environment variable, including TERM if needed to properly run the program on the remote server. PATH is most important. If you set that up and run subsequent scripts you will then have an environment if the variables are exported.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 11:14 PM
06-12-2003 11:14 PM
Re: Unexpected messages when using ssh and rlogin
Check your enviroment sources, you may found
something also check that every shell run
also default enviroment sources that
sit in /etc
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 06:38 AM
06-13-2003 06:38 AM
Re: Unexpected messages when using ssh and rlogin
ganesha:/home/bdouglas> ssh qe2l1 env
SHELL=/usr/local/bin/bash
SSH_CLIENT=10.241.16.48 35329 22
USER=bdouglas
SSH_AUTH_SOCK=/tmp/ssh-Bbu25927/agent.25927
MAIL=/var/spool/mail/bdouglas
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
PWD=/home/bdouglas
TZ=CST6CDT
SHLVL=1
HOME=/home/bdouglas
LOGNAME=bdouglas
DISPLAY=localhost:11.0
_=/usr/bin/env
Any commands executed by ssh are run after the environment is set up, including the path.
Mind you, it is good advice to always specify full path names in a script, especially when multiple users may be using a script.