05-31-2009
I gave " sftp -v username@target ip " and it is giving an error as
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090700f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 172.21.73.185 [172.21.73.185] port 22.
debug1: Connection established.
debug1: identity file /users/d12381/.ssh/id_rsa type -1
debug1: identity file /users/d12381/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version CoreFTP-0.1.2
debug1: no match: CoreFTP-0.1.2
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.1
debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
mech_dh: Invalid or unknown error
)
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: Peer sent proposed langtags, ctos:
debug1: Peer sent proposed langtags, stoc:
debug1: We proposed langtags, ctos: i-default
debug1: We proposed langtags, stoc: i-default
debug1: dh_gen_key: priv key bits set: 121/256
debug1: bits set: 493/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '172.21.73.185' is known and matches the RSA host key.
debug1: Found key in /users/d12381/.ssh/known_hosts:4
debug1: bits set: 500/1024
debug1: ssh_rsa_verify: signature correct
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /users/d12381/.ssh/id_rsa
debug1: Trying private key: /users/d12381/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
debug1: Calling cleanup 0x47db8(0x0)
Connection closed
Can anyone please tell me what does it mean ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All :),
I am making a script in the ksh to Secure FTP a set of files from the E:/ drive in windows a computer to a unix server.
Had it been in the unix directory, I could have used the expect utility to use the non-interactive mode for sftp,
#!/usr/local/bin/expect
#!/bin/ksh
... (12 Replies)
Discussion started by: pranavagarwal
12 Replies
2. Solaris
When I try
$sftp -v <username>@
Connecting to <ip>...
debug1: SSH args "ssh -oProtocol = 2 -s -oForwardAgent = no -oForwardX11 = no -l <username> -v <ip> sftp"
SSH Version Sun_SSH_1.0.1, protocol versions 1.5/2.0.
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts... (15 Replies)
Discussion started by: GIC1986
15 Replies
3. AIX
Hi,
Could you please help to solve the below issue...
my requirement is automate the SFTP between UNIX and Windows server.
I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server).
For that, i have generated key pair (private/public) in my AIX machine .... (6 Replies)
Discussion started by: mahiban
6 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to connect from Unix machine to Windows 2003 server using passphrase method. It is connecting to the server and the connection is immediately closing. Below is the stack trace. Can anyone let me know what wrong with it?
cwadmin@iut1wps1:/home/cwadmin> ssh username@targetip... (1 Reply)
Discussion started by: vijayin
1 Replies
5. Shell Programming and Scripting
Hi all
Not sure where I should be posting this so apologies if it's in the wrong section.
I'm trying to set up a system where we can copy a file (get) from a Windows server to a Unix server using SFTP in an automated way.
I've installed CoreFTP Server on the Windows server and can connect... (2 Replies)
Discussion started by: huskie69
2 Replies
6. UNIX for Dummies Questions & Answers
When I try to SFTP from our UNIX box to an outside vendor using passwords - no keys, I am immediately get disconnected.
We have the FIREWALL open because I get prompted for the password.
Here's the error:
sftp userid@sftp.test.com
Connecting to sftp.test.com...
userid@sftp.test.com's... (5 Replies)
Discussion started by: blt123
5 Replies
7. UNIX for Dummies Questions & Answers
Plz share how we can make a passwordless SSH connection from a SSH1 UNIX server to SSH2 UNIX server. (3 Replies)
Discussion started by: krishna87
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am not able to give the password in Unix script for SFTP connection.
When I am trying to manully SFTP command for accessing the server , it asking for pwd and I could provide the pwd but I am not getting how to provide the pwd inside the Unix script.
sftp -v user@xyz.com.
... (4 Replies)
Discussion started by: Vineeta Nigam
4 Replies
9. Shell Programming and Scripting
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
10. Windows & DOS: Issues & Discussions
HI ,
I am trying to make a passwordless sftp connection from a unix server to windows server
I have used a existing script which is like this
cd /home150/adm/.ssh/
ssh-agent /usr/bin/ksh <<EOF
ssh-add IDBNEWKEY
ssh-add -l
sftp IDBUSER@abc.com
cd /home/IDBUSER/Share/IDB/
rm ${FILE}... (0 Replies)
Discussion started by: Jcpratap
0 Replies
AFPD(8) Netatalk 2.2 AFPD(8)
NAME
afpd - Apple Filing Protocol daemon
SYNOPSIS
afpd [-duptDTI] [-f defaultvolumes] [-s systemvolumes] [-n nbpname] [-c maxconnections] [-g guest] [-P pidfile] [-S port] [-L message]
[-F configfile] [-U uams] [-m umask]
afpd -v | -V | -h
DESCRIPTION
afpd provides an Apple Filing Protocol (AFP) interface to the Unix file system. It is normally started at boot time from /etc/rc.
/etc/netatalk/afpd.conf is the configuration file used by afpd to determine the behavior and configuration of the different virtual file
servers that it provides.
The list of volumes offered to the user is generated from /etc/netatalk/AppleVolumes.system and one of /etc/netatalk/AppleVolumes.default,
~/AppleVolumes, ~/.AppleVolumes, ~/applevolumes, or ~/.applevolumes. The AppleVolumes files is used to specify volumes to mount and file
name extension mappings.
OPTIONS
-d
Specifies that the daemon should not fork. If netatalk has been configured with --enable-debug1, a trace of all AFP commands will be
written to stdout.
-p
Prevents clients from saving their passwords. (Equivalent to -nosavepasswd in afpd.conf.)
-t
Allows clients to change their passwords. (Equivalent to -setpasswd in afpd.conf.)
-D
Use DDP (AppleTalk) as transport protocol. (Equivalent to -ddp in afpd.cond.)
-T
Use TCP/IP as transport protocol. (Equivalent to -tcp in afpd.conf.)
-v
Print version information and exit.
-V
Print verbose information and exit.
-h
Print help and exit.
-I
Use a platform specific icon. (Equivalent to -icon in afpd.conf.) (Recent Mac OS don't display it.)
-f defaultvolumes
Specifies that defaultvolumes should be read for a list of default volumes to offer, instead of /etc/netatalk/AppleVolumes.default.
-s systemvolumes
Specifies that systemvolumes should be read for a list of volume that all users will be offered, instead of
/etc/netatalk/AppleVolumes.system.
-u
Read the user's AppleVolumes file first. This option causes volume names in the user's AppleVolumes file to override volume names in
the system's AppleVolumes file. The default is to read the system AppleVolumes file first. Note that this option doesn't effect the
precendence of filename extension mappings: the user's AppleVolumes file always has precedence.
-n nbpname
Specifies that nbpname should be used for NBP registration, instead of the first component of the hostname in the local zone.
-c maxconnections
Specifies the maximum number of connections to allow for this afpd. The default is 20.
-g guest
Specifies the name of the guest account. The default is 'nobody'.
-P pidfile
Specifies the file in which afpd stores its process id.
-S port
Specifies the port to register with when doing AFPoverTCP. Defaults to 548. (Equivalent to -port in afpd.conf.)
-L message
Specifies the login message that will be sent to clients. (Equivalent to -loginmsg in afpd.conf.)
-F configfile
Specifies the configuration file to use. (Defaults to /etc/netatalk/netatalk/afpd.conf.)
-U uams
Comma-separated list of UAMs to use for the authentication process. (Equivalent to -uamlist in afpd.conf.)
-m umask
Use this umask for the creation of folders in Netatalk.
SIGNALS
To shut down a user's afpd process it is recommended that SIGKILL (-9) NOT be used, except as a last resort, as this may leave the CNID
database in an inconsistent state. The safe way to terminate an afpd is to send it a SIGTERM (-15) signal and wait for it to die on its
own.
SIGTERM and SIGUSR1 signals that are sent to the main afpd process are propagated to the children, so all will be affected.
SIGTERM
Clean exit. Propagates from master to childs.
SIGQUIT
Send this to the master afpd, it will exit leaving all children running! Can be used to implement AFP service without downtime.
SIGHUP
Sending a SIGHUP to afpd will cause it to reload its configuration files.
SIGINT
Sending a SIGINT to a child afpd enables max_debug logging for this process. The log is sent to fhe file /tmp/afpd.PID.XXXXXX. Sending
another SIGINT will revert to the original log settings.
SIGUSR1
The afpd process will send the message "The server is going down for maintenance." to the client and shut itself down in 5 minutes. New
connections are not allowed. If this is sent to a child afpd, the other children are not affected. However, the main process will still
exit, disabling all new connections.
SIGUSR2
The afpd process will look in the message directory configured at build time for a file named message.pid. For each one found, a the
contents will be sent as a message to the associated AFP client. The file is removed after the message is sent. This should only be
sent to a child afpd.
FILES
/etc/netatalk/afpd.conf
configuration file used by afpd
/etc/netatalk/AppleVolumes.default
list of default volumes to mount
/etc/netatalk/AppleVolumes.system
list of volumes to offer all users
~/AppleVolumes, ~/.AppleVolumes, ~/applevolumes, ~/.applevolumes
user's list of volumes to mount
/etc/netatalk/afp_signature.conf
list of server signature
/etc/netatalk/afp_voluuid.conf
list of UUID for Time Machine volume
/etc/netatalk/afp_ldap.conf
configuration file for LDAP and ACL support
/etc/netatalk/msg/message.pid
contains messages to be sent to users.
BUGS
SEE ALSO
hosts_access(5), afpd.conf(5), AppleVolumes.default(5), afp_signature.conf(5), afp_voluuid.conf(5), afp_ldap.conf(5), dbd(1).
Netatalk 2.2 08 Mar 2011 AFPD(8)