f



Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory

I install rwsync server on xp, and on fedora tried to ssh as follows;

1) on fedora
ssh-keygen -P "" -f ~/.ssh/id_rsa

chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa

ftp id_rsa.pub to xp

2) on xp

append id_rsa.pub to /cwRsyncServer/var/SvcwRsync/.ssh/
authorized_keys2

3) and on fedora

ssh -i ~/.ssh/id_rsa id@192.168.0.3

then I got this error message.

"Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or
directory."

My sshd_config on xp is as follows::

#Port 22
Protocol 2,1
#Protocol 2
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
#HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh_host_rsa_key
HostKey /etc/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
# PermitRootLogin no

# The following setting overrides permission checks on host key files
# and directories. For security reasons set this to "yes" when running
# NT/W2K, NTFS and CYGWIN=ntsec.
StrictModes no

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys2

# For this to work you will also need host keys in /etc/ssh/
ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication yes
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
IgnoreUserKnownHosts yes
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no

# Change to no to disable s/key passwords
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCreds yes

# Set this to 'yes' to enable PAM authentication (via challenge-
response)
# and session processing. Depending on your PAM configuration, this
may
# bypass the setting of 'PasswordAuthentication'
#UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
MaxStartups 10:30:60

# default banner path
Banner /etc/banner.txt

# override default of no subsystems
Subsystem	sftp	/usr/sbin/sftp-server


And, /var/log/OpenSSHServer.log is

/etc/sshd_config line 16: garbage at end of line; "protocol".
/etc/sshd_config line 16: garbage at end of line; "protocol".
/etc/sshd_config line 16: garbage at end of line; "protocol".
/etc/sshd_config line 16: garbage at end of line; "protocol".
/etc/sshd_config line 16: garbage at end of line; "protocol".
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key

Why do I get this error mesage?

"Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or
directory."

Is there errors on sshd_config?
0
hanpedro (4)
12/17/2007 10:49:57 AM
comp.security.ssh 4228 articles. 0 followers. terra1024 (490) is leader. Post Follow

3 Replies
4028 Views

Similar Articles

[PageSpeed] 26

> And, /var/log/OpenSSHServer.log is
> 
> /etc/sshd_config line 16: garbage at end of line; "protocol".
> /etc/sshd_config line 16: garbage at end of line; "protocol".
> /etc/sshd_config line 16: garbage at end of line; "protocol".
> /etc/sshd_config line 16: garbage at end of line; "protocol".
> /etc/sshd_config line 16: garbage at end of line; "protocol".
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Could not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> 

Did you check the permissions on /etc/ssh_host_rsa_key
/etc/ssh_host_dsa_key ?? Or if they exists.

I think it is stange in your config to find both :

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

And

HostKey /etc/ssh_host_rsa_key
HostKey /etc/ssh_host_dsa_key



You can eventually check also /etc/ssh/ssh_config which is the config
file of ssh client. May be you can find some clue about the connection
problem. It may also exist a log of the ssh client... but do not know where.

EnjoY!
0
12/17/2007 12:38:57 PM
On 12=BF=F917=C0=CF, =BF=C0=C8=C49=BD=C338=BA=D0, M'vy <yves.stad...@free.fr=
> wrote:
> > And, /var/log/OpenSSHServer.log is
>
> > /etc/sshd_config line 16: garbage at end of line; "protocol".
> > /etc/sshd_config line 16: garbage at end of line; "protocol".
> > /etc/sshd_config line 16: garbage at end of line; "protocol".
> > /etc/sshd_config line 16: garbage at end of line; "protocol".
> > /etc/sshd_config line 16: garbage at end of line; "protocol".
> > Could not load host key: /etc/ssh/ssh_host_rsa_key
> > Could not load host key: /etc/ssh/ssh_host_dsa_key
> > Disabling protocol version 1. Could not load host key
> > Could not load host key: /etc/ssh/ssh_host_rsa_key
> > Could not load host key: /etc/ssh/ssh_host_dsa_key
> > Disabling protocol version 1. Could not load host key
> > Could not load host key: /etc/ssh/ssh_host_rsa_key
> > Could not load host key: /etc/ssh/ssh_host_dsa_key
> > Disabling protocol version 1. Could not load host key
> > Could not load host key: /etc/ssh/ssh_host_rsa_key
> > Could not load host key: /etc/ssh/ssh_host_dsa_key
> > Disabling protocol version 1. Could not load host key
>
> Did you check the permissions on /etc/ssh_host_rsa_key
> /etc/ssh_host_dsa_key ?? Or if they exists.
>
> I think it is stange in your config to find both :
>
> HostKey /etc/ssh/ssh_host_rsa_key
> HostKey /etc/ssh/ssh_host_dsa_key
>
> And
>
> HostKey /etc/ssh_host_rsa_key
> HostKey /etc/ssh_host_dsa_key
>
> You can eventually check also /etc/ssh/ssh_config which is the config
> file of ssh client. May be you can find some clue about the connection
> problem. It may also exist a log of the ssh client... but do not know wher=
e.
>
> EnjoY!- =B5=FB=BF=C2 =C5=D8=BD=BA=C6=AE =BC=FB=B1=E2=B1=E2 -
>
> - =B5=FB=BF=C2 =C5=D8=BD=BA=C6=AE =BA=B8=B1=E2 -

Thank you, M'vy!!

It's permission problem!

My ssh is working now.

0
hanpedro (4)
12/17/2007 1:13:23 PM
 > Thank you, M'vy!!
> 
> It's permission problem!
> 
> My ssh is working now.

No Problem!

EnjoY!
0
12/17/2007 5:41:48 PM
Reply:

Similar Artilces:

files, directories, files, directories
Hi folks, I've been trying to make a decision and it's driving me crazy. Is a directory a file or is a directory NOT a file but a node? Should I have A) public interface IFile { IFileName FileName; IContent GetContent(); } public interface IDirectory extends IFile { } or B) public interface INode { INodeName NodeName; } public interface IFile extends INode { IContent GetContent(); } public interface IDirectory extends INode { } Method A is nice cause IFile becomes the base "Node" type and you can use names like "IFileName" which sound...

broken SSH ld.so.1: ssh: fatal: libgss.so.1: open failed: No such file or directory
After a recent patch cluster SSH has broke. It looks like a missing or corrupt library, but I am unsure how to fix it. Has anyone seen this before? Here is the output I get when attempting to SSH to another machine- ld.so.1: ssh: fatal: libgss.so.1: open failed: No such file or directory Killed If I try to SSH to this machine I receive- " Secure connection refused" dnaflr2@yahoo.com writes: >After a recent patch cluster SSH has broke. It looks like a missing or >corrupt library, but I am unsure how to fix it. Has anyone seen this >before? Here is the output I get when a...

automate file access on server using SSH and passwordless access
My concern is to execute cvommand and access files in directory which is on the server. I want to execute those files from the local machine via ssh and for this i need to have a common key so that i dont have to keep making different keys all the time If u have a solution or a cookbook kind of a thing for this please help me jenil wat is windows 2003 server regards <a href=unificationwars.50webs.com>game</a> <a href=unificationmars.atspace.com>free</a> <a href=http://www.gamestotal.com/>Free MMOG</a> <a href=http://uc.gamestotal.com/>Free MMORP...

How to access file last modified dates on each file in a directory
Greetings, I am attempting to view all files in a directory and if those files have not been modified within the last couple days I will remove them. In order to do this I need to look at the file date modied and check the date. I know how to look at each file name and I know how to remove the file. I just can't figure out how to get access to the date last modifed filed. Below is how I intend to access the file names in the directory. >>> import os,time,sys >>> cachedirectory="c:\\informatica\\cache\\" >>> v_filename_array=os.listdir(cachedirectory) ...

nsf file security issue, file open accessible
Hello there, pls help, while my security team scan my lotus-domino server, they found : [HTTP/8080/TCP] Document /qstart.nsf/?Open accessible., i am very newbie to notes, could pls help this. thanks & regards, John On 2 Jun 2004 00:52:48 -0700, hojzheng@yahoo.com (John Ho) wrote: >Hello there, > >pls help, >while my security team scan my lotus-domino server, they found : >[HTTP/8080/TCP] Document /qstart.nsf/?Open accessible., >i am very newbie to notes, could pls help this. > >thanks & regards, >John If this is a problem (does htt...

ssh ssh
I am trying to write a script that takes a list of hosts and sshs into the first one and then can ssh to other ones. I can only ssh to the other hosts from the first host. Here is what I tried: I think it is waiting for the ssh to the first host to finish. I guess I could scp a partial hostlist and a program to *.domain and then run the program remotely. Am I on a right track? #!/bin/perl use strict; open( HL, '<hostlist3.txt' ) || die "can't open hostlist3"; #!/bin/perl use strict; open( HL, '<hostlist3.txt' ) || die "can't open hostlist3&qu...

ssh to ssh
I have the following scenerio: Remote PC with Xmanager small linux gateway, with sshd and ssh but no X software local host with sshd and X software I am trying to do the following from the remote PC: ssh -X (gateway addr. x.x.x.x "ssh -X (local host add 192.168.25.40) xterm" and it is failing. Please help if possible. Looking at the verbose output I see: OpenSSH_3.8.1p1, OpenSSL 0.9.7c 30 Sep 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to x.x.x.x [x.x.x.x] port 80. debug1: Connection established. debug1: ident...

PHP file access and directory security
I have a directory protected with .htaccess / .htpasswd. After I'm validated, I run a php script which bombs out when trying to write a file to that directory. If I chmod 777 on the directory (default was 755) then everything works ok. So apparently, the script is running under a different security context even though it's being run via my http session validated via .htaccess. 1) Do I have to be concerned about access to a protected directory via .htaccess but with wide-open file permissions? 2) If yes, are there any alternatives for my PHP routines if I want to maintain file-leve...

Secure file transfer via ssh
Hi, When I try to transfer some files via ssh, I got an error message: connect to remote_ip_address port 1234 failed I am not quiet sure what cause the problem and how to resolve the issue. Any suggestion would be highly appreciated! Thanks. thuang2@hotmail.com wrote: > Hi, > > When I try to transfer some files via ssh, I got an error message: > > connect to remote_ip_address port 1234 failed > > I am not quiet sure what cause the problem and how to resolve > the issue. Any suggestion would be highly appreciated! Thanks. > Given this ample supply ...

SSH over SSH
Hi all, Our university network is accessed through a gateway machine, which accepts SSH connections and from which I can SSH onto other machines. I'm looking to write a program to make it easy for Mac OS X users to set up tunnels. Part of this involves storing passwords in the keychain. If I just want to forward a local port to the gateway machine, I can set SSH_ASKPASS to something suitable which looks in the keychain. However, if I want to forward a local port to another machine on my university network, i.e., another hop, I need to somehow have an SSH_ASKPASS utility on the gateway m...

FTP and SSH file access question
Hi All, I am working on a RedHat 9 machine remotely (in a lab environment), trying to access a file owned by root (permissions: -r--------) on the remote machine. I have root FTP access (upstream) but only user-level access via SSH. The FTP data port (20) is closed, so I can't get the file with FTP. I can't use SSH (or SCP) to view/download the file, because root is disabled from connecting to SSH (even locally). Does anyone have any ideas? I figure the combination between root FTP access and standard SSH access can be used in some way. The remote machine also has web services runnin...

file.exe file generation from file.m file
How to generate application (*.exe) file from *.m file, which has lots of graphics. Program was written for image watermarking by using image processing toolbox. I want to send this program some where else but with out sowing the program codes. By this *.exe no need to use matlab6.5 platform. Also tell me How to generate *.p file from *.m file Which is hide the code to user but for run this program need matlab6.5 Please give me some idea about it. it is very urgent for me. I will be very great full to you "Biswajit Kar" <hibiswajitkar@rediffmail.com> wrote in message ne...

File association misbehavior -- "Open File -- Security Warning"
This is a strange one. I have VLC and Winamp on this system. To stop video playback from clobbering the playlist in Winamp, I installed VLC to use for video playback, and told it to only grab video file associations. Next time I used Winamp, it grabbed the video file associations back. When I then went to use a video, it opened in Winamp. I found and disabled an option for it to grab file associations. Then I manually ran VLC and looked in it for an option to grab file associations without reinstalling it, but apparently there is none. So I right clicked various video files an...

transfer file to system directory thru ssh.
Hi, I need remotely transfer some system configuration files to the /etc and /usr/local/etc directory. I could configure ssh user account with public key installed, the transfer will be started withiout asking the password. But since the ssh account is not a root account, it does not have permission copy the file to system directory. How can I configure the system allow this ssh account copy file to system directory without modifying the file system permission? Thanks Sam sam wrote: > Hi, > > I need remotely transfer some system configuration files to the ...

Lost mdw security file in Access 97 files
I have some old code locked in two Access 97 files where I lost the mdw file and the pid do to system crashes. Can someone refer me to a commercial vendor who can crack these files? - Regards - Kurt I believe Serge Gavrilov has made available free software to illustrate the leaky security of Access 97... caveat: I haven't actually used this, nor any of his software... the URL I have is: http://accesstools.narod.ru. But, I don't know if he still has it available for download on his site -- haven't visited it in some time. "PrisNo6" <fisherka@csolutions.net> wr...

Include files in access file
Hi, In /etc/aliases it is possible to use include files. Does anyone know if this is possible with the /etc/mail/access file? Using the access file we only accept mail for certain users and reject the rest of the domain. Obviously maintaining a single user list would be preferable across the three MX servers we run. If I could break the access file into single include files for each domain then it would make things much more easy to manage. I did write a Perl script which concatenated include files into one access file and then SCP'ed this to other servers but this is not ideal as at...

File properties on file access
in simple words i want to have a Visual Basic 6 code so that when a file of specific extension is run]...for example a text file...or a microsoft word file...]...i get to notice in a LOG and read the properties. ---- Extended explanation: i need to monitor AUTOCAD file execution on a single file...[no databse plz..only text or csv ourputs]..so that i know if a file was NEWLY CREATED, MOVED, RENAMED,MODIFIED, ACCESSED. The autocad file extension is "*.dwg" ...

access file from jar file
Hello, I have a jar file which have files in it like nl.company.data.file1 nl.company.data.file2 and build in data.jar In another java program I want to access these files and read the content from the jar file 'data.jar' How do I do that thanks John Bruintje Beer wrote: > Hello, > > I have a jar file which have files in it like > > nl.company.data.file1 > nl.company.data.file2 > > and build in data.jar > > In another java program I want to access these files and read the > content from the jar file 'data.jar' > > How do I do t...

tar file with . files and . directories
hi i want to create a tar file with all my . files and . directories in my home directory. i cannot create a tar file without having all my files in it is there a way to create such a tar file? thanx in advance cu hausi On Tue, 02 Mar 2004 23:00:47 +0000, Hannes wrote: > hi > > i want to create a tar file with all my . files and . directories in my > home directory. > > i cannot create a tar file without having all my files in it is there a > way to create such a tar file? > Not very clear what you want to do. If you don't want some files to be archived, use...

use of ssh command and to find an entry is a file or directory
Hi In this script i have to check whether the dest_dir is a file or directory. I used -d and -f command to check wether it is a directory or file. I am getting an error message E03020134: wc: cannot open famis@falcon.as.ksu.edu:/usr/local/lic/ famis/famd/FMMSource /usr/local/lic/harvest5/SCRIPTS/deploy2_5.1.1.ksh[59]: famis@falcon.as.ksu.edu:/usr/local/lic/famis/famd/FMMSource: cannot open Pseudo-terminal will not be allocated because stdin is not a terminal. I00020133: Warning: no access to tty (Bad file number). Thus no job control in this shell. I00020133: Sun Microsystems Inc. SunOS 5.8 G...

"ssh secure file transfer" hangs!!
Hello, I am using "SSH Secure Shell 3.2.9 workstation" non-commercial version on Windows XP. A shell client works fine. But "ssh secure file transfer" doesn't work. It just hang. The whole application got hanged so that I have to restart the application again. It used to work fine. I checked a server which is linux machine. It didn't have any log about the failure. I reinstalled it several time, but still it didn't work. Do you have any clue? Thanks a lot ...

ssh.com's ssh isn't executing my bash startup files
I have two remote hosts, one dc01 and one marion, that both are NFS-mounting the same home directory, so I know they are using the same shell startup files. Here are their respective ssh server versions: dc01: SSH-1.99-OpenSSH_3.4p1 marion: SSH-1.99-3.2.3 SSH Secure Shell (non-commercial) Marion is using a version from ssh.com, apparently non-commercial. My problem is, when I ssh to marion, it isn't executing my bash startup files. Here are some example symptoms: $ ssh dc01 'echo $PATH' /home/rutt/opt/j2sdk1.4.2_01/bin:/home/rutt/bin:/home/rutt/local/bin:/usr/loca...

file extention from file file location
Hi, I am new to perl (only working on this one problem) but I program in other languages. We have an upload script written in cgi. Can anyone tell me how to get the file extension from the variable $File1 (actual file location on uploader's computer) then find out if it is equal to "txt" Thanks in advance for not telling me to read the manual. Ron -- PLEASE NOTE: comp.infosystems.www.authoring.cgi is a SELF-MODERATED newsgroup. aa.net and boutell.com are NOT the originators of the articles and are NOT responsible for their content. HOW TO POST to co...

SSH cannot login , remote system say /bin/bash: no such file or directory
Hello, I was working on a remote server with centos 5. Trying to re-install glibc and after it showed /bin/bash: bad interpreter. I logged out of the server and when I try to login, I get connected for a second and immediately get disconnected. [suppor@server ~]$ ssh -vv user@remoteserver OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.10.55 [192.168.10.55] port 22. debug1: Connection established. debug1: id...

Web resources about - Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory - comp.security.ssh

Resources last updated: 3/7/2016 7:04:58 PM