sftp Unspecified GSS failure Minor code may provide more information No credentials cache found
Hi
I have managed on numerous machine to set up sftp not too require a password - i finally have one that does not work and Im at a loss - looked around checked permissions etc
The 2 machines Ill call then source and target I need to sftp from source to target (previously the target has always been the same with different users)
on source entered
Code:
ssh-keygen -t dsa
(used empty passphrase)
copied .ssh/id_dsa.pub to target as the user i want to use to log in as
.ssh/authorized_keys2 and .ssh/authorized_keys
on source logged in manually to save as known host
now when i try from the source
Code:
sftp -v -oPort=222 user@target
I get
Code:
Connecting to targetI
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to target [IP addr] port 222.
debug1: Connection established.
debug1: identity file /home/applpatch/.ssh/id_rsa type -1
debug1: identity file /home/applpatch/.ssh/id_dsa type 2
debug1: loaded 2 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9
debug1: match: OpenSSH_5.9 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'target' is known and matches the RSA host key.
debug1: Found key in /home/applpatch/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Next authentication method: publickey
debug1: Trying private key: /home/applpatch/.ssh/id_rsa
debug1: Offering public key: /home/applpatch/.ssh/id_dsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: password
and then prompts me for a password ....
any help much appreciated
daryl
Last edited by Scrutinizer; 05-07-2012 at 10:36 AM..
Reason: code tags
uname -a
Linux yce-crp1-01 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \r on an \m
target
Code:
uname -a
Linux revion-qlc4v3.revion.com 3.2.1 #1 SMP Wed Jan 18 16:56:35 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
Fedora release 12 (Constantine)
Kernel \r on an \m (\l)
tipotheday.com/2007/09/24/howto-ssh-without-a-password/
- add http:// i cant post a link I dont have enough posts
has the solution I found the link on one of the many posts in this forum - this was the first time i saw stuff about chmod on the target impacting the access (600 for authorized_keys and voila it works)
I want to transfer all details of sftp connection into a log file and spawn sftp $PCMSu@$FTP_LOC >> log_file is not working for me. Please suggest how to send the data to a log file that has all information if sftp connection is successful or not?
Script that I am using:
#!/usr/bin/expect... (7 Replies)
Hi ,
I need to write a IF condition to know if a SFTP file transfer is successful or not and send email if its failed.
`sftp username@servername <<comm1
cd /directory
put filename
comm1
bye`
I use above commands for my connections. So please help me to write a IF statement.
... (0 Replies)
I am trying to send a file from my 9000 box to a vendor using sftp and I am getting this error: Couldn't close file: Failure
Here are the results of my automated script:
Connected to yyy.com.
sftp> pwd
Remote working directory: /
sftp> cd xxxxx/yyyyy_TEST/TEST
sftp> put FILE FILETEST... (1 Reply)
Hello,
Sometimes when i execute my shell that makes sftp it gives me this error:
Couldn't close file: Failure.
What does it mean?, how can i make sure it will do ok?.
Bye (2 Replies)
Hello Gurus
I am new to HPUX so kindly help me by providing information related to HPUX. I would like to know the date when HPUX 11i v3 comes in to market as well as I have H3056S student guide dated May 2005 which I download through some site. Now I want to know its a HPUX 11i v2 or HPUX 11i... (8 Replies)
I updated the Suse linux 10.0 OS online .The sysem ask me to reboot to take effects.I do so.But the OS do not load and show the message "Error 15 - The file was not found" What can I Do? It does not login to failesafe mode also.May I do reinstall the os through the cd ? Then HOW? I am Very New the... (0 Replies)
Hi,
I am having unix server SUNW,Sun-Fire-V245.
remote windows server details: Microsoft Windows
In my script i am sftp'ing files to the windows server through sftp command.
But the problem i am facing is, some files are successfully sftp'd to windows server and for some files sftp is... (0 Replies)
Hello,
I just want to ask regarding the meaning of the error that we got using sftp:
Connecting to <TARGET SERVER IP>...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
anybody please tell me how do i get all the information
about buffer cache in hp-ux .if anybody familiar with the system
call them please specify .
i found the extern variables in /sys/buf.h . but that didn't help .:) (2 Replies)