LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2002, 11:31 PM   #1
pentium5
LQ Newbie
 
Registered: Jun 2002
Distribution: RH 7.2, 7.3 & SOLARIS
Posts: 5

Rep: Reputation: 0
scp problem


Warning: Identity file /root/.ssh/identity.pub does not exist.

I have copy the id_ras.pub as authorized_hosts2 in the other server.


my /etc/ssh/sshd_config ( source server)
# $OpenBSD: sshd_config,v 1.34 2001/02/24 10:37:26 deraadt Exp $
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# This is the sshd server system-wide configuration file. See sshd(8)
# for more information.
Port 22

Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin yes
#
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes

# Logging

( I read the old text from library, and began to realize about the hosts.allow, I thought I can solved the whole problem, in fact I am searching glue or hints to do scp across the internet.

I tried /etc/hosts.allow in the opposite server ie to test scp across the internet with


ALL: ALL : ALLOW, no luck too.

my scp -script:

#! /bin/sh
rm -f /root/.ssh/scp.log
clear
s_date=`date`
echo "Start at ${s_date}" > scp.log
echo "I am in 192.168.1.80 doing Secure copy (SCP): your source files is from (web-server)"
echo "Check from /root/.ssh/scp.log, please wait until I completed the scp ..."
rm -R -f /home/save/redhat7.1
email="a_user@mydomain.com"


date1=`date`

#Copy everything from the sites directory on the server
/usr/bin/scp -c 3des -4 -v -r -P 22 -i /root/.ssh/identity.pub root@w.xy.z:/var/www/html/redhat7.1/webhotels /home/save/ >> /root/.ssh/scp.log 2>&1

#/usr/bin/scp -c 3des -4 -v -r -P 22 -i /root/.ssh/identity.pub root@mydomain.com:/home/a_user/scp-test /home/save >> /root/.ssh/scp2.log 2>&1

date2=`date`
echo "completed at ${date2}" >> scp.log
echo -e "SCP backup start: ${date1}\nbackup ended: ${date2}" | mail -s "SCP completed" ${email}
exit 0

my setting for internal scp sometimes is ok and sometimes connection on mac is discrupted. ( ie some error there-

Disconnecting: Corrupted MAC on input.
lost connection ).



is the protocol 2 in /etc/ssh/sshd_config mean ssh2?

Last edited by pentium5; 06-17-2002 at 01:17 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
scp problem digsby0007 Linux - Software 2 06-05-2008 10:26 AM
SCP problem Lotharster Linux - Networking 6 12-02-2005 03:40 AM
scp problem! alaios Linux - Security 5 05-08-2004 01:06 PM
scp problem eduac Linux - Security 3 08-11-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration