09-27-2010
(t)c shell problem and ssh
I have recently discovered an annoying problem with some of our Linux boxes (running Opensuse 11.3) that is defying our attempts to resolve.
If I (or anyone else using c shell) log in remotely to 2 of our Opensuse 11.3 machines with ssh, then they cannot run a lot of software. It seems that $PATH is not synchronised with $path and $PATH appears to be read only. Furthermore echo $PATH does not return the same thing as printenv $PATH.
A third machine running Opensuse 11.3 is fine. Also if I log in to these machines on the console, they are fine!
We cannot determine the cause (and solution).
Any ideas?
Andrew
![Confused Smilie](https://www.unix.com/images/smilies/confused.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode:
warning: You have no controlling tty. Cannot read confirmation.^M
warning: Authentication failed.^M
Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
What the problem is that we have a client that has now decided to use SSH protocol 2 only for their internal security audit. This is not a problem except now our SCO system will not connect.
I can connect with putty from a windows box fine until the SCO system tries to access which then... (0 Replies)
Discussion started by: Bilb
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Floks!
This is Sravan!
I am new to linux and I am trying to write bash shell script in which I want to change the user but the statements which are after the "su " command are not working that I mean I want to execute some statements as the changed user
here is the code
... (2 Replies)
Discussion started by: sravanp
2 Replies
4. AIX
I thought I had seen all errors in SSH but the following is new to me:
buffer_get: trying to get more bytes 129 than in buffer 6
Anyone seen this before please? Google search returns nothing of use that I can see.
I am running an lpar on a 52A and the O/S is AIX 5.3 TL 4CSP. (2 Replies)
Discussion started by: johnf
2 Replies
5. UNIX for Advanced & Expert Users
hi all!
i'm trying to make ssh connection between COMP1 to any computer on my network and i get this error:
"Host key verification failed."
any computer can access COMP1 in ssh...
i have already deleted the "known_hosts" and "authorized_keys" files and created them again...
any1 have an... (1 Reply)
Discussion started by: eliraza6
1 Replies
6. Shell Programming and Scripting
Hi
Please help me with the following problem with my script.
The following block of code is not repeating in the while loop and exiting after searching for first message.
input_file
==========
host001-01
host001-02
2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies
7. Shell Programming and Scripting
Hi ,
I have this piece of code.
for xyz in `grep "$envir $envtype" ~/user/Move/config/ProdEnvList|cut -d "|" -f11`
do
username=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f7`
hostname=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f6`
ssh $username@$hostname -n 'cd... (2 Replies)
Discussion started by: debu182
2 Replies
8. UNIX for Dummies Questions & Answers
Hi whenever i try to do any ssh related activity like.
ssh <servername>, scp some files to a server i get =true I have checked modt message but nothing is there.
I can able to get the ssh session but for scp, =true prompt get displayed but nothing happens.
For example:
# scp file1.txt... (5 Replies)
Discussion started by: pinga123
5 Replies
9. Solaris
Hi Guys,
when I try to login to one of my sun server (sparc) from within an open putty session on another server I get this message:
bash-3.2$ ssh 10.0.0.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (1 Reply)
Discussion started by: cjashu
1 Replies
10. Shell Programming and Scripting
I am able to login to server x from y in shell script. But after that command is get executed on server y. I need the command to be executed on server x.
Ex.
ssh -n 0.0.0.X
ls -ltr
Above script I am executing from 0.0.0.Y
I got result but it executed on server Y server. But when I use ssh... (4 Replies)
Discussion started by: babapatil14
4 Replies
LEARN ABOUT DEBIAN
ssh-copy-id
SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho-
rized_keys file.
If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your
ssh-agent. Otherwise, if this:
ssh-add -L
provides any output, it uses that in preference to the identity file.
If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin-
gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory,
if necessary.)
NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in
its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu-
ally, e.g. via
chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys
on the remote machine.
SEE ALSO
ssh(1), ssh-agent(1), sshd(8)
OpenSSH 14 November 1999 SSH-COPY-ID(1)