Sponsored Content
Full Discussion: scp without password
Top Forums UNIX for Beginners Questions & Answers scp without password Post 302984977 by vbe on Thursday 3rd of November 2016 09:53:37 AM
Old 11-03-2016
Why such limitations?
The idea of using secure shell suite is mosltly that: after having a secured ( crypted) connection, using keys so there is no more need of entering passwords...

The only other alternative is using a file in home directory but that would be seen by your admins as a security breach... ( my opinion is more temperate...)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

scp scripting without asking password

I like to copy a file from one server server1 from path path1 to another server server2 to path path2. User logging in both the servers are same say user1 I tried to use ssh to generate public/private key pairs and then copy without prompting for password. These are the steps i followed ... (5 Replies)
Discussion started by: jwala
5 Replies

2. UNIX for Advanced & Expert Users

scp without password

Hi, when I use scp test.jsp user@remote:/tmp/ I'm prompted user@remote's password: How can I avoid it ? Thank you. (8 Replies)
Discussion started by: big123456
8 Replies

3. Shell Programming and Scripting

scp file to another server without asking for password

hi I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed. i have generated the public key for the system using "ssh-keygen -t " and kept it in the .ssh/authorized_keys file. ... (8 Replies)
Discussion started by: aemunathan
8 Replies

4. UNIX for Dummies Questions & Answers

scp without password - NT to UNIX

Hi guys, I wasn't sure which thread to include this one in (unix or shell scripting) but chose here based on search results. I need to automate a process which requires the need to transfer a file from a machine running on NT to the database server on UNIX. I've found this and a number of other... (7 Replies)
Discussion started by: Dird
7 Replies

5. Red Hat

sftp/scp without password

Hi, I want to use sftp/scp without password.How can I do that ?? I plan to use script with scp/sftp and execute by cronjob ,any sample or example?? How can I test the scp/sftp working or not in the same user account , in the same red linux server?? any suggestion ??? (5 Replies)
Discussion started by: chuikingman
5 Replies

6. Shell Programming and Scripting

Passing Password into scp Command

Hi Everyone, I'm trying to run scp as a one-line command, as of right now, it prompts me for the user's password to the remote machine. Does anyone know if there is an option to pass the password parameter into the scp command on the same line so it doesn't prompt me? Thanks! (1 Reply)
Discussion started by: twhitmarsh
1 Replies

7. UNIX for Advanced & Expert Users

scp without prompting for password

I am trying to copy a file from remote machine using scp. I followed the steps to configure public/private key usage. But still prompting for password when I do ssh. I did the following steps to configure scp without asking password Step 1 : local host > ssh-keygen -t rsa and when prompted... (9 Replies)
Discussion started by: satish@123
9 Replies

8. Linux

Regarding scp with out password

Dear all, I have two servers A and B. I want to do scp with out password between these two servers. I created ssh-keygen and copied the id-rsa.pub file to each of them in authorized_keys. But I could login only from B to A with out password. From A to B it is asking for a password. ... (5 Replies)
Discussion started by: jegaraman
5 Replies

9. Shell Programming and Scripting

SFTP / SCP using password

Hi, I was provided with sftp servername, user and password and the requirement is to connect to sftp server using credentials provided and drop the file. Manually i am able to connect with commands like sftp user@servername and after clicking enter, i was asked for a password and entering... (4 Replies)
Discussion started by: forums123456
4 Replies

10. Shell Programming and Scripting

scp without password between two servers

Hello Folks, I have two linux server accounts server1 and server2 From the terminal if I say this command, scp /source/folder/from/server1/unix.txt user@server2.com:/destination/folder/ Then it prompts for the password user@server2.com's password: I enter my password and then it... (1 Reply)
Discussion started by: jacobs.smith
1 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 04:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy