<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unexpected messages when using ssh and rlogin in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994095#M5058</link>
    <description>Hi,&lt;BR /&gt; Have a look at athis thread&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91a644f56197d711abdc0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91a644f56197d711abdc0090277a778c,00.html&lt;/A&gt;</description>
    <pubDate>Fri, 13 Jun 2003 01:47:09 GMT</pubDate>
    <dc:creator>V.Tamilvanan</dc:creator>
    <dc:date>2003-06-13T01:47:09Z</dc:date>
    <item>
      <title>Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994093#M5056</link>
      <description>Hello, I'm getting some strange messages when using ssh and rlogin to remote login into our server. We have a simple network setup right now, with a Compaq Proliant Server running RedHat Advanced Server 2.1 and a few Compaq workstations running RedHat 8.0. We are using NIS to share user and host name information with the workstations(the only user created on the workstations is root, all other users are created on the server). When we use rlogin or ssh to remote login into the server(using a user other than root), we get these messages:&lt;BR /&gt;&lt;BR /&gt;root: command not found&lt;BR /&gt;root: Undefined variable&lt;BR /&gt;&lt;BR /&gt;The remote login works fine, but we have these messages.&lt;BR /&gt;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?&lt;BR /&gt;Any help would be greatly appreciated. I would really like to get rid of those messages!!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 11 Jun 2003 04:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994093#M5056</guid>
      <dc:creator>Tony Rossomano_2</dc:creator>
      <dc:date>2003-06-11T04:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994094#M5057</link>
      <description>Which command line do you use exactly to connect to the server?&lt;BR /&gt;&lt;BR /&gt;What does ssh_config look like on your server?</description>
      <pubDate>Thu, 12 Jun 2003 08:14:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994094#M5057</guid>
      <dc:creator>Michael Armbrecht</dc:creator>
      <dc:date>2003-06-12T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994095#M5058</link>
      <description>Hi,&lt;BR /&gt; Have a look at athis thread&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91a644f56197d711abdc0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91a644f56197d711abdc0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Fri, 13 Jun 2003 01:47:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994095#M5058</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2003-06-13T01:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994096#M5059</link>
      <description>This has nothing to do with NIS.&lt;BR /&gt;&lt;BR /&gt;It has to do with environments and how rlogin and ssh work.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;That environment must be set in the script you are running, which must be referred to by its full path name.&lt;BR /&gt;&lt;BR /&gt;ssh server1 "cp /etc/issue /tmp/issue"&lt;BR /&gt;&lt;BR /&gt;probably won't work, because you have no PATH variable and this command doesn't know where to look for the cp command.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 13 Jun 2003 01:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994096#M5059</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-06-13T01:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994097#M5060</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Check your enviroment sources, you may found&lt;BR /&gt;something also check that every shell run&lt;BR /&gt;also default enviroment sources that&lt;BR /&gt;sit in /etc&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Fri, 13 Jun 2003 06:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994097#M5060</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-13T06:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected messages when using ssh and rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994098#M5061</link>
      <description>Steven, I think you may be mistaken on the environment issue.  I tried the following:&lt;BR /&gt;&lt;BR /&gt;ganesha:/home/bdouglas&amp;gt; ssh qe2l1 env&lt;BR /&gt;SHELL=/usr/local/bin/bash&lt;BR /&gt;SSH_CLIENT=10.241.16.48 35329 22&lt;BR /&gt;USER=bdouglas&lt;BR /&gt;SSH_AUTH_SOCK=/tmp/ssh-Bbu25927/agent.25927&lt;BR /&gt;MAIL=/var/spool/mail/bdouglas&lt;BR /&gt;PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin&lt;BR /&gt;PWD=/home/bdouglas&lt;BR /&gt;TZ=CST6CDT&lt;BR /&gt;SHLVL=1&lt;BR /&gt;HOME=/home/bdouglas&lt;BR /&gt;LOGNAME=bdouglas&lt;BR /&gt;DISPLAY=localhost:11.0&lt;BR /&gt;_=/usr/bin/env&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any commands executed by ssh are run after the environment is set up, including the path.&lt;BR /&gt;&lt;BR /&gt;Mind you, it is good advice to always specify full path names in a script, especially when multiple users may be using a script.</description>
      <pubDate>Fri, 13 Jun 2003 13:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-messages-when-using-ssh-and-rlogin/m-p/2994098#M5061</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-06-13T13:38:04Z</dc:date>
    </item>
  </channel>
</rss>

