06-12-2017
Great. Look at the home and .ssh directories permissions (and acl's if any ) on the account that works - both local and remote. Make the one that fails match permissions exactly to the good account. Do that for key files as well. Keyfiles have to match ownership with the owner of the home directory.
This is the most common way to get and fix the result you see. There are lots of other ways things can get broken, but this will get you started. Next step is setting correct key files with correct permissions on key files in the .ssh directory for the bad account. Both servers. Remember, to login from a remote node the place that gets logged into has to have the correct keys from the incoming site in the user's .ssh directory.
See if that will get you going. If not, check back here.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Good morning.
I am using RedHat shell. when running the .out file of a program I wrote, I cannot see a terminal with the outputs. I know that the program runs, because the files to be changed are changed.
how can I see the terminal (As I see it in windows)?
Thanks,
Ido. (2 Replies)
Discussion started by: ginodii
2 Replies
2. Shell Programming and Scripting
i would like to make a shell script (red hat 9 cmd line only)
to telnet to my local isp's webmail server on port 25 and send it commands
such as helo :) help would be much appreciated, and i found no posts similar that answered my question... the closest i've gotten to an answer from about 8... (3 Replies)
Discussion started by: kypeswith
3 Replies
3. Linux
Hi All,
Where should start checking error on red hat?
I want to check error on system, paging, memory, pci, external storage, etc.
I few advise will do and highly appreciated.
Thanks,
itik (3 Replies)
Discussion started by: itik
3 Replies
4. Red Hat
I get error message when boot up red hat linux
Buffer I/O error on device hdc ,logical block XX
...
/dev/hdc:read failed after 0 of 2048 at 0 : input/output error
.....
I paste the /etc/fstab file in here
/dev/hdc is cdrom
How can I fix it
Please advice
# cat /etc/fstab
# This file... (3 Replies)
Discussion started by: chuikingman
3 Replies
5. Shell Programming and Scripting
We are changing our OS from HP-Unix 11 to Linux Red Hat. We have few k- shell, c - shell and sql scripts which are currently running under HP-Unix 11. Will these scripts work on LINUX as it is? or we need to do any code changes?IS there anyone who have done this kind of migration before?Thanks for... (2 Replies)
Discussion started by: Phoenix2
2 Replies
6. Red Hat
Hello everybody, the reason why im posting this thread is because i've installed an oracle test database on RHEL 5, on a localhost (Since it is for test)... the thing is, after i have installed the DB it works just fine, but after i re start it, i get the following errors when i want to go into the... (5 Replies)
Discussion started by: blacksteel1988
5 Replies
7. Red Hat
Hi,
I have two questions,first of all is where can I collect more error logs(the log under /var/log/messages), also give the corresponding explain is grateful.The second one is the log under various versions(such as red hat,suse,etc) is the same or not.
Thanks for answers. (1 Reply)
Discussion started by: zhaoyy
1 Replies
8. Linux
I have the smbclient installed and I am able to see information from the '-L' option. But when I attempt to login I'm getting the "NT_STATUS_BAD_NETWORK_NAME". I was hoping for help, because I'm not sure what is supposed to go into the smb.conf file. My goal is to transfer files from my Linux... (2 Replies)
Discussion started by: islanderman
2 Replies
9. Shell Programming and Scripting
Are basic scripts in awk or bash or perl or other shell scripting languages the same in RHEL red hat as ubuntu? (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT PHP
ldap_connect
LDAP_CONNECT(3) 1 LDAP_CONNECT(3)
ldap_connect - Connect to an LDAP server
SYNOPSIS
resource ldap_connect NULL ([string $hostname], [int $port = 389])
DESCRIPTION
Establishes a connection to a LDAP server on a specified $hostname and $port.
PARAMETERS
o $hostname
- If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with
SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.
o $port
- The port to connect to. Not used when using URLs.
RETURN VALUES
Returns a positive LDAP link identifier on success, or FALSE on error. When OpenLDAP 2.x.x is used, ldap_connect(3) will always return a
resource as it does not actually connect but just initializes the connecting parameters. The actual connect happens with the next calls to
ldap_* funcs, usually with ldap_bind(3).
If no arguments are specified then the link identifier of the already opened link will be returned.
EXAMPLES
Example #1
Example of connecting to LDAP server.
<?php
// LDAP variables
$ldaphost = "ldap.example.com"; // your ldap servers
$ldapport = 389; // your ldap server's port number
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost, $ldapport)
or die("Could not connect to $ldaphost");
?>
Example #2
Example of connecting securely to LDAP server.
<?php
// make sure your host is the correct one
// that you issued your secure certificate to
$ldaphost = "ldaps://ldap.example.com/";
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost)
or die("Could not connect to {$ldaphost}");
?>
SEE ALSO
ldap_bind(3).
PHP Documentation Group LDAP_CONNECT(3)