SSH in geterogenius environment problem


 
Thread Tools Search this Thread
Operating Systems Solaris SSH in geterogenius environment problem
# 8  
Old 09-11-2009
Code:
... 0Q2s/glqqPzUeoaB6Qrefg8= root@serverA

Are you trying to ssh as a regular user or as root?
If you are trying to do it as root, you need to edit the line PermitRootLogin in etc/ssh/sshd_config to allow root to log in directly.

If you are doing it as a user, you need to create your keys as that user, and not create them as root then install them in the user's directory.
# 9  
Old 09-14-2009
I'm trying to ssh as a regular user and I've created and have installed keys correctly - I have in ~user/.ssh files id_rsa and id_rsa.pub, but when I add key from id_rsa.pub in serverB's ~user/.ssh/authorized keys ssh returns "Permission denied" error... I can post ssh output, but I doesn't differ from posted here...
# 10  
Old 09-14-2009
Quote:
Originally Posted by Sapfeer
I'm trying to ssh as a regular user and I've created and have installed keys correctly - I have in ~user/.ssh files id_rsa and id_rsa.pub, but when I add key from id_rsa.pub in serverB's ~user/.ssh/authorized keys ssh returns "Permission denied" error... I can post ssh output, but I doesn't differ from posted here...
Well, according to the output you posted, and the snippet I quoted from that post, the key in authorized_keys belongs to root, not user. If it belonged to user, it'd read user@serverA
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting environment variable problem in Ubuntu?

I am trying to install timbl- memory based learner tools in ubuntu. it after unpacking the tar file it brings the following msg No package 'ticcutils' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you... (1 Reply)
Discussion started by: gbdaw
1 Replies

2. Shell Programming and Scripting

Grep problem from The Unix Programming Environment

Hi Here is the problem ( Exercise 3-3, Using The Shell of The Unix Programming Environment, Kerninghan, Pike, 3rd edition ): Predict what each of the following grep commands will do, and then verify your understanding. grep \$ grep \\$ grep \\\$ grep '\$' grep '\'$' grep \\ grep \\\\... (3 Replies)
Discussion started by: dum_dum20
3 Replies

3. Shell Programming and Scripting

problem with setting environment variable

shell script: #!/bin/csh set VAR=12345 echo $VAR will peacefully give the output 12345 at shell. I need to use C++ to do the same in some part of the code: string str = "12345"; retValue="set var1= "+str; system(retValue1.c_str()); system("echo $var1"); This doesn't create a system... (1 Reply)
Discussion started by: harshvardhan360
1 Replies

4. Emergency UNIX and Linux Support

Problem setting environment variables from script

Hi all! I know that environment variables can be set on the .bashrc file, but I need to set them from a sh script. I saw a lot of websites that teach this but it doesn't work for me. #!/bin/sh DEKTOP=$DESKTOP=:/home/rrodrigues/Desktop export DESKTOP if I do echo $DESKTOP returns me... (10 Replies)
Discussion started by: ruben.rodrigues
10 Replies

5. Ubuntu

Debian install maintainer environment variable problem

Hi, I am using Ubuntu 8.04 (Hardy heron) and I am trying to package my application using 'dpkg'. I am following 'rules' based debian packaging. I am using install script to copy certain shared object libraries into my package installation path. for eg:... (0 Replies)
Discussion started by: royalibrahim
0 Replies

6. Shell Programming and Scripting

Problem setting environment...

Hi All I'm attempting to automate the process of setting the DISPLAY environment variable when logging on (sourcing the .cshrc). I have a mixture of linux and solaris servers and this comnand: who -m | awk '{ print $6}' | tr -d '()' seems to work on all the servers. I want... (2 Replies)
Discussion started by: huskie69
2 Replies

7. Linux

Access environment variables on remote host using ssh

How can i access environment variables on remote host using ssh example: # Remote server $ echo $MAIL /var/spool/mail/gacf $ # Local server $ ssh gacf@server1 'echo $MAIL' /var/mail/gacf $ Expected to find: $ ssh gacf@server1 'echo $MAIL' /var/spool/mail/gacf $ (3 Replies)
Discussion started by: brendan76
3 Replies

8. Shell Programming and Scripting

ssh keygen script in NFS environment

I have 2 separate systems having same userid with home directory nfs mounted which is shared by both the boxes. I want to make ssh connection from server1 to server2 which should not ask for password. I have ssh installed on both the systems. Can anyone guide me in generating ssh-key using dsa... (2 Replies)
Discussion started by: deo_kaustubh
2 Replies

9. Solaris

problem with environment variables

hi , i have a problem in setting value of $TERM variable in solaris while installing the SUN SPARCT1 simulation environment on ma pc so some one plkease guide me i have attached a snapshot of my error below thankew (1 Reply)
Discussion started by: Naughtydj
1 Replies

10. UNIX for Advanced & Expert Users

HISTSIZE environment variable problem

Hi All, I am connecting to a sun solaris 5.9 unix (korn shell) server using the x terminal. There is some problem with the HISTORY File where the HISTSIZE env variable is not working. Although the HISTSIZE is set to 20 already but the HISTORY file keep increasing and exceeded the size. There... (5 Replies)
Discussion started by: Kenneth2006
5 Replies
Login or Register to Ask a Question