Sponsored Content
Top Forums Shell Programming and Scripting connect to remote server by applying password Post 302343299 by vikash_k on Wednesday 12th of August 2009 06:02:29 AM
Old 08-12-2009
connect to remote server by applying password

Hi ,

I am new to shell script.

I have to write a shell script which will login to remote server then check for the space there. There 50 remote ervers all are having different password.

Could you please suggest me some way. I am working on solaris box.

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Connect to a Remote Sybase Server Through Script.

Hi all, I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8) The thing is i dont know how to connect to Sybase Server through my script file? Are there any manual pages which can guide me through the... (2 Replies)
Discussion started by: Aparna_k82
2 Replies

2. Shell Programming and Scripting

[SSH] Need to connect to remote server as different user and without password

I have a task requiring that USER_A run a script, which connects to HOST_B as USER_B and does not ask for a password. If I am logged in on HOST_A as USER_B, I can connect to HOST_B without a password, no problem. However, if I try running ssh with the command line "ssh USER_B@HOST_B" while... (3 Replies)
Discussion started by: Totengraber
3 Replies

3. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

4. UNIX for Dummies Questions & Answers

How do I connect to a remote X11 server ?

Hi, how do I connect to a remote x server? i tried this: startx -display 192.168.0.1:0 # when I do this, it just connects to my own x server i.e I see my own desktop. and export DISPLAY=192.168.0.1:0.0 # when I do this nothing happens. (it doesn't even try to connect, no activity in... (7 Replies)
Discussion started by: uxfuser
7 Replies

5. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

6. Shell Programming and Scripting

Connect to Remote DB2 ,using URL ,username,Password

Hi All, I am new to Shell scripting, I want to connect to DB2 database through URL,username and password Please help me out. I read so many posts in that there is no where it is mentioned about how to connect to a remote database. Thanks in advance :) (0 Replies)
Discussion started by: Rohit G
0 Replies

7. HP-UX

Connect to remote server using sftp with password define within command/script

I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it. I want sftp can read a password define in script or from file, so it can... (1 Reply)
Discussion started by: ketanraut
1 Replies

8. AIX

Command to connect to remote AIX server

Hi All, Im looking for a command that can remotely connect to another AIX machine and execute scripts present in that server(Possible scenarios are a complete a restart of 3 servers in a cluster through a single script execution present in one of the servers). Im relatively new to AIX and... (5 Replies)
Discussion started by: Vishakh
5 Replies

9. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

10. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
rexecd(8c)																rexecd(8c)

Name
       rexecd - remote execution server

Syntax
       /etc/rexecd

Description
       The  command  is  the  server  for the routine.	The server provides remote execution facilities with authentication based on usernames and
       encrypted passwords.

       The command is invoked by when it receives a connection on the port indicated in the ``exec'' service specification.  For further  informa-
       tion, see When a service request is received the following protocol is initiated:

       1) The server reads characters from the socket up to a null (`') byte.  The resultant string is interpreted as an ASCII number, base 10.

       2) If  the  number received in step 1 is non-zero, it is interpreted as the port number of a secondary stream to be used for the stderr.  A
	  second connection is then created to the specified port on the client's machine.

       3) A null terminated username of at most 16 characters is retrieved on the initial socket.

       4) A null terminated password of at most 16 characters is retrieved on the initial socket.

       5) A null terminated command to be passed to a shell is retrieved on the initial socket.  The length of the command is limited by the upper
	  bound on the size of the system's argument list.

       6) The  command	then  validates  the  user  as is done at login time and, if the authentication was successful, changes to the user's home
	  directory, and establishes the user and group protections of the user.  If any of these steps fail the  connection  is  aborted  with  a
	  diagnostic message returned.

       7) A  null  byte  is  returned on the connection associated with the stderr and the command line is passed to the normal login shell of the
	  user.  The shell inherits the network connections established by

Diagnostics
       All diagnostic messages are returned on the connection associated with the stderr, after which any  network  connections  are  closed.	An
       error  is indicated by a leading byte with a value of 1 (0 is returned in step 7 above upon successful completion of all the steps prior to
       the command execution).

       username too long
       The name is longer than 16 characters.

       password too long
       The password is longer than 16 characters.

       command too long
       The command line passed exceeds the size of the argument list (as configured into the system).

       Login incorrect
       No password file entry for the username existed.

       Password incorrect
       The wrong was password supplied.

       No remote directory
       The command to the home directory failed.

       Try again
       A fork by the server failed.

       /bin/sh: ...
       The user's login shell could not be started.

Restrictions
       Indicating ``Login incorrect'' as opposed to ``Password incorrect'' is a security breach which allows people to probe a	system	for  users
       with null passwords.

See Also
       inetd(8c)

																	rexecd(8c)
All times are GMT -4. The time now is 11:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy