02-18-2016
Quote:
Originally Posted by
jim mcnamara
Your public key (the external account connecting to the ussdsc user) has to exist in the remote authorized_keys file. Can you find it there? Since obviously you can login over there and look at things in that remote directory.
hi Jim,
yes, the public key infa8@A
/infa8/home/.ssh/id_rsa.pub exists in both
/home/opc_op/.ssh/authorized_keys and
/home/ussdsc/.ssh/authorized_keys as I pointed earlier I can login as user
opc_op@B but not as
ussdsc@B (starting from the same point
infa8@A)
As a side note: I do have direct root access on both servers, I just to solve this issue for the users.
Last edited by rbatte1; 07-06-2016 at 01:05 PM..
Reason: Added some ICODE tags for clarity
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hi,
When logging in using SSH access (to a remotely
hosted account), I received a prompt to accept
a server's key fingerprint. Wrote that string
of code down for comparision.
Already emailed my host for their listing of the
string of code for the server's key fingerprint
(for comparison,... (1 Reply)
Discussion started by: Texan
1 Replies
2. UNIX for Dummies Questions & Answers
This is on a Solaris 9 box, but I feel like a noob, so I am posting here. When I echo $PATH I get a lot of duplicate paths and extra stuff I don't need. What I want is just what I set up in my home dir under .profile
My login shell=/bin/bash
I checked the following and there are no path... (1 Reply)
Discussion started by: Veestan
1 Replies
3. UNIX for Dummies Questions & Answers
This is what I have:
#include <stdio.h>
int main (void)
{
int integerVar;
int floatingVar;
int doubleVar;
int charVar;
integerVar = 100;
floatingVar = 331.79;
doubleVar = 8.44e+11;
charVar = 'W';
_Bool boolVar;
boolVar = 0;
... (3 Replies)
Discussion started by: pwanda
3 Replies
4. Shell Programming and Scripting
Hi,
I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies
5. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
6. Shell Programming and Scripting
Its rather confusing, the output of top command is below:
The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image."
But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
7. HP-UX
I am trying to complete ssh2 connection between HP-UX and CoreFTP. The host key authentication fails with signature didn't match. See below output. I can connect to this CoreFTP from my Windows desktop, and connect to a multitude of other servers from the HP-UX system as well, but have... (2 Replies)
Discussion started by: Stars
2 Replies
8. Shell Programming and Scripting
Hello Friends,
My bash script is like this
#!/bin/bash
# request Bourne shell as shell for job
#$ -S /bin/bash
# assume current working directory as paths
#$ -cwd
#$ -N rsync-copy
#
# print date and time
date
rsync -rltD --progress "ssh -i /home/myname/.ssh/id_rsa"... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
9. Shell Programming and Scripting
In the example below i would want the extensions to match.
Is there any other utility or script to achieve this. Kindly help.
Example:
sdiff sourceFileNames targetFileNames
17021701P.blf | 17021901P.ibk
17021701P.chn | 17021901P.irk
17021701P.bmr | 17021901P.dyd
17021701P.dpf |... (7 Replies)
Discussion started by: jamilpasha
7 Replies
10. UNIX for Beginners Questions & Answers
I thought I had this figured out but was wrong so am humbly asking for help.
The task is to add an additional column to FILE 1 based on records in FILE 2.
The key is in COLUMN 1 for FILE 1 and in COLUMN 1 OR COLUMN 2 for FILE 2.
I want to add the third column from FILE 2 to the beginning of... (8 Replies)
Discussion started by: andmal
8 Replies
LEARN ABOUT FREEBSD
ssh-copy-id
SSH-COPY-ID(1) BSD General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id -- copy public keys to a remote host
SYNOPSIS
ssh-copy-id [-lv] [-i keyfile] [-o option] [-p port] [user@]hostname
DESCRIPTION
The ssh-copy-id utility copies public keys to a remote host's ~/.ssh/authorized_keys file (creating the file and directory, if required).
The following options are available:
-i file
Copy the public key contained in file. This option can be specified multiple times and can be combined with the -l option. If a
private key is specified and a public key is found then the public key will be used.
-l Copy the keys currently held by ssh-agent(1). This is the default if the -i option was not specified.
-o ssh-option
Pass this option directly to ssh(1). This option can be specified multiple times.
-p port
Connect to the specified port on the remote host instead of the default.
-v Pass -v to ssh(1).
The remaining arguments are a list of remote hosts to connect to, each one optionally qualified by a user name.
EXIT STATUS
The ssh-copy-id utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
To send a specific key to multiple hosts:
$ ssh-copy-id -i /path/to/keyfile.pub user@host1 user@host2 user@host3
HISTORY
The ssh-copy-id utility was written by Eitan Adler <eadler@FreeBSD.org> as a drop-in replacement for an existing utility included with
OpenSSH.
BSD
February 28, 2014 BSD