Sponsored Content
Top Forums Shell Programming and Scripting Copy symbolic links from one server to another Post 302483566 by EAGL€ on Monday 27th of December 2010 05:17:22 PM
Old 12-27-2010
@DGPickett 3 times it asks for passwd and even i enter the right one i coudlnt login.

@ludwig normally i use a licensed GUI to connect remote servers (by using ssh2), sometimes i use telnet to connect our local servers in command line. Besides when i use the ssh -v option it printed out many lines of log:

Code:
ssh -v root@192.168.0.46 /bin/date 
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
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 192.168.0.46 [192.168.0.46] port 22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1
debug1: no match: Sun_SSH_1.1
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
Unknown code 0
)
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: Peer sent proposed langtags, ctos: bg-BG,en-CA,en-US,es,es-MX,et-EE,fr,fr-CA,hr-HR,lt-LT,lv-LV,mk-MK,ro-RO,ru,ru-RU,sh-BA,sl-SI,sq-AL,sr-CS,et,lt,lv,nr,sr-SP,sr-YU,tr,tr-TR,i-default
debug1: Peer sent proposed langtags, stoc: bg-BG,en-CA,en-US,es,es-MX,et-EE,fr,fr-CA,hr-HR,lt-LT,lv-LV,mk-MK,ro-RO,ru,ru-RU,sh-BA,sl-SI,sq-AL,sr-CS,et,lt,lv,nr,sr-SP,sr-YU,tr,tr-TR,i-default
debug1: We proposed langtags, ctos: en-US
debug1: We proposed langtags, stoc: en-US
debug1: Negotiated lang: en-US
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: Remote: Negotiated main locale: en_US.UTF-8
debug1: Remote: Negotiated messages locale: en_US.UTF-8
debug1: dh_gen_key: priv key bits set: 132/256
debug1: bits set: 1600/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.46' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:7
debug1: bits set: 1574/3191
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: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Next authentication method: gssapi-keyex
debug1: Next authentication method: gssapi-with-mic
debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
Unknown code 0
)
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/identity
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password: 
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password: 
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive
Password: 
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
debug1: Calling cleanup 0x3429c(0x0)

---------- Post updated at 12:17 AM ---------- Previous update was at 12:12 AM ----------

I think the servers are not in same local area network
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Symbolic Links for a File

how do i get the list of symbolic link names for a particular file programatically (4 Replies)
Discussion started by: b_u_n_1234
4 Replies

2. UNIX for Dummies Questions & Answers

Too many levels of symbolic links

Hi, Is there a limit to the number of symbolic links you can have? I tried to vi the symbolic link relating to a file and got the following error: "filename" Too many levels of symbolic links There is only one symbolic link to one file in this case, but there are >2000 other links to... (2 Replies)
Discussion started by: Bab00shka
2 Replies

3. Solaris

cp a dty without symbolic links?

Hi, - we have copy (cp command) to do to save all the contents of a dty BUT we dont want to copy the files corresponding to symbolic links contained whithin this dty - the box is a sun solaris one - and the cp commande do not say avything about that? thanks for help Jakez (7 Replies)
Discussion started by: JAKEZ
7 Replies

4. AIX

Symbolic Links

I am linking a directory as follows: ln -sf /home/xxx/userid/real_files/* /home/xxx/userid/linked_files This gives me symbolic links for all the files in the real_files directory in the linked_files directory. My question is, if I go and remove a file in the real_files directory and then go... (1 Reply)
Discussion started by: rcarnesiii
1 Replies

5. AIX

Copy command in Aix for Symbolic Links

I need to copy a directory from a production system to a test system on the same Aix server. However I need to ensure that the soft links are preserved as part of the copy ( therefore I guess the cp command is not the way to go ) What command can I use in Aix to achieve this copy ? thanks in... (2 Replies)
Discussion started by: jimthompson
2 Replies

6. UNIX for Dummies Questions & Answers

Symbolic links between directories

Hi all, lets consider 2 directories test1 and test2. I want to link test2 to point to test1, how do u do this? (4 Replies)
Discussion started by: Mr. Zer0
4 Replies

7. Solaris

symbolic links between servers

Hi Guys... I want to create a link using ln -s for a directory that does not exist on the box. How do I do that? I had some files from Box A directory /d1/u01 and I copied the files across to another Box lets say Box B on directory /d2/u02. Now I want a link so that this path /d1/u01... (2 Replies)
Discussion started by: Phuti
2 Replies

8. UNIX for Dummies Questions & Answers

Symbolic Links

Hi all, I have scoured the entire forum for this but to no avail unfortunately. Basically, I would like to remove my symbolic link from my folder name i.e. foldername -> /a/b/c/d/f where f is indeed a folder. I have tried rmdir but this does not work and in actual fact deletes the... (4 Replies)
Discussion started by: cyberfrog
4 Replies

9. UNIX for Dummies Questions & Answers

Symbolic links in UNIX

Hi, I have a file with more than 1 layers of soft links for it. For ex. ls -la .profile .profile@ -> /home/act/.profile_abc ls -la /home/act/.profile_abc@ -> .profile_final I want to get the name of the last file (i.e. .profile_final) when I refer to .profile using shell script. I... (2 Replies)
Discussion started by: deo_kaustubh
2 Replies

10. Solaris

Symbolic links

Soft link,Hard link brief explanation (1 Reply)
Discussion started by: RAJU KAVATI
1 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)
All times are GMT -4. The time now is 06:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy