Sponsored Content
Top Forums Shell Programming and Scripting Can't solve a simple SSH/scp issue.. Please help. Post 302922036 by denissi on Tuesday 21st of October 2014 07:09:56 PM
Old 10-21-2014
Code Can't solve a simple SSH/scp issue.. Please help.

Disclaimer: I tried searching but wasn't able to get to the answer so please don't flame.

Scenario:
I have a root script that generates a file on box1 and then needs to scp it over to box2 using user1. Both boxes are running open-ssh.

root@locat-host# scp /tmp/file1 user1@box2:/tmp/file1

Problem:
When I scp directly from user1 (user1@box1# ssh box2) -- all is good.
When I scp from root user (root@box1# ssh user1@box2) -- I am prompted for a password.

local-host key located: /home/user1/id_rsa.pub
remote-host auth located: /home/user1/authorized_keys

Is my key placement off?

- Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Simple Windows-to-Unix SCP question

Hi, I am fairly new to Unix. My school computers have only UNIX installed on them, and I wish to use them to do some parallel computing. To do so, I need to transfer the files from my Windows computer to my Unix account on a different computer. I am using the SSH login with the Putty client.... (2 Replies)
Discussion started by: Duchesne
2 Replies

2. Solaris

Help me to solve this issue

Hi, I want to send a .tar file from one solaris 5.9 server to another server in order to make files in sync.What method i can use? (2 Replies)
Discussion started by: Renjesh
2 Replies

3. Solaris

please help me solve this issue.........

Hi, I am having a Solaris 5.9 server in which an audit trail script is running every day.It is doing nothing but taking the backup of three files given below -rw-r--r-- 1 root root 1807 May 18 01:30 login_server1_17May2008 -rw-r--r-- 1 root root 0 May 18 01:30... (5 Replies)
Discussion started by: Renjesh
5 Replies

4. UNIX for Dummies Questions & Answers

Can anyone solve this awk issue ?

awk -F^ '{ if (($1 != "X") && ($5 != "3")) || if (($1 != "S") && ($5 != "2")) print $0}' abc> xyz The above command returns this error awk: syntax error near line 1 awk: illegal statement near line 1 I am newbie to awk, Any awk intelligence involved in correcting this issue is highly... (2 Replies)
Discussion started by: karthickrn
2 Replies

5. Shell Programming and Scripting

simple scp script

simple bash script to scp specific file to another server example: /etc/dir1 (specific file name) then you will just execute a keyword.. sample: ./scp.sh atm*. where atm*. is a sample keyword to search) thanks (0 Replies)
Discussion started by: lhareigh890
0 Replies

6. UNIX for Dummies Questions & Answers

Simple Problems to Solve!

Hi, I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated! 1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working! 2. I'm trying to download TopCat. I've done... (2 Replies)
Discussion started by: SimonWhite
2 Replies

7. Shell Programming and Scripting

Request to checkVenn diagram issue solve by Unix programm

Hello Any Unix programm can help me to solve thsi issue: I have 2 venn digrams please checke the attached file for pictures of venn diagram for eg red is A yellow is B and green is C..Please see attached file for Venn diagrams In one ..... I have 3 data set A , B and C Venn diagram... (0 Replies)
Discussion started by: manigrover
0 Replies

8. Programming

Removed /root/.cabal by mistake - how to solve this issue?

I have mistakenly removed /root/.cabal/ from my root directoty and when I tried to reinstall it I get this output: faiz:~$ sudo cabal install pandoc --reinstall Resolving dependencies... In order, the following will be installed: pandoc-1.14.0.4 (reinstall) Warning: Note that reinstalls are... (3 Replies)
Discussion started by: faizlo
3 Replies

9. Shell Programming and Scripting

How to solve hang issue in script?

i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations. And i am invoking that function from my main script by passing some values. Sometimes it is hanging in the middle for some value. For example: For 1st... (3 Replies)
Discussion started by: thomasraj87
3 Replies

10. Red Hat

How to solve TCP connection timeout (not in ssh)?

HI We have some Red Hat Linux Sevres which is having TCP connection timeout, not SSH connection, as an example oracle connection connected from TOD. SSH i managed to add keepalive and it's working fine (1 Reply)
Discussion started by: bentech4u
1 Replies
SECPANEL(1)						      General Commands Manual						       SECPANEL(1)

NAME
secpanel - a Tcl/Tk front-end to ssh and scp SYNOPSIS
secpanel DESCRIPTION
SecPanel serves as a graphical user interface for managing and running SSH (Secure Shell) and SCP (Secure Copy) connections. Note: SecPanel is not a new implementation of the SecureShell protocol or the ssh software-suite. SecPanel sits on top of SSH software-suites and supports the SSH.com and the OpenSSH-version. You may get information about these programs at http://www.ssh.com respectively at http://www.openssh.com. SecPanel is written entirely in pure Tcl/Tk and does not need any extensions but it requires Version 8.x of Tcl and Tk. SecPanel is free software and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details. Features Saves and manages profiles of different SecureShell connections. Gives an ftpclient-like graphical interface/file listing for launching SCP-transfers. Editing of profiles mainly by mouse-clicking. Gives list of profiles to connect to. One list for default connections using a default profile and another list for managing special connections e.g. port-forwarding setups for reading mail. Management of the ssh-agent. Support for generating and distributing keys for public key authentication. Planned Features Support for the SSH2 protocol related options, configurations and special features of SSH.com's and OpenSSH's suites. AUTHOR
Steffen Leich <secpanel@pingx.net> SEE ALSO
ssh(1), scp(1), ssh-askpass(1), ssh-agent(1) Debian Project 2002-06-30 SECPANEL(1)
All times are GMT -4. The time now is 05:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy