04-18-2012
search in google for "password less ssh setup"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I tried the following script to copy one file automatically:
#!/bin/csh -f
su - root -c "rcp 150.10.128.1:/export/home/sn408Xl/sn408Sol/$fn $fn
This works fine but is there a better way to copy remotely without entering the username and password? Moreover, after the file is copied a... (1 Reply)
Discussion started by: ilak1008
1 Replies
2. Shell Programming and Scripting
Hi
Please suggest me How I can Execute UNIX Scritp on Remote server.
Thanks
Sourabh (2 Replies)
Discussion started by: sourabhshakya
2 Replies
3. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
4. Shell Programming and Scripting
Hi All,
I need to first of all establish a connection to remote unix server non-interactively with the help of a shell script and then connect to oracle database from that server all with this script of mine.
Please suggest the best method which could be used to connect to server for executing... (1 Reply)
Discussion started by: m_kapur83
1 Replies
5. Shell Programming and Scripting
Hello All,
I'm new to unix and i need the below favour from you.
I have list of 50 unix server. I need to login to all the server one by one and with the same user and password. I will declare the user name and password globally in the script.
for example :
servername- hyperV
user name... (4 Replies)
Discussion started by: Hari A
4 Replies
6. Shell Programming and Scripting
I am unable to run the below script against a remote server due to syntax error (then unexpected), but i am able to run it locally. Am i executing it correctly or is there any other way to execute it.
ssh username@servernname ksh -s < scriptname
#!/bin/ksh
function record
{
((end =... (5 Replies)
Discussion started by: NarayanaPrakash
5 Replies
7. HP-UX
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. Solaris
Hi All,
I am not able to get the command prompt after entering the login password on solaris server
Only access is through console.
Server type : sun4u sparc SUNW,Netra-T12
bsnl-north-in > ssh 10.147.17.207 jtoin
Connecting to 10.147.17.207 as user jtoin
Password:
Last login: Wed Mar 5... (1 Reply)
Discussion started by: sandeep_kmehra
1 Replies
9. Solaris
Hi,
I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script.
Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies
10. Shell Programming and Scripting
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
KDESU(1) KDE User's Manual KDESU(1)
NAME
kdesu - Runs a program with elevated privileges
SYNOPSIS
kdesu [-c] [-d] [-f file] [-i icon name] [-n] [-p priority] [-r] [-s] [-t] [-u user] [--nonewdcop] [command [arg1] [arg2] [...]]
kdesu [KDE Generic Options] [Qt Generic Options]
DESCRIPTION
KDE su is a graphical front end for the UNIX(R) su command for the K Desktop Environment. It allows you to run a program as different user
by supplying the password for that user. KDE su is an unprivileged program; it uses the system's su.
KDE su has one additional feature: it can optionally remember passwords for you. If you are using this feature, you only need to enter the
password once for each command.
This program is meant to be started from the command line or from .desktop files.
OPTIONS
-c program
This specifies the program to run as root. It has to be passed in one argument. So if, for example, you want to start a new file
manager, you would enter at the prompt: kdesu -c kfm -sw
-d Show debug information.
-f file
This option allow efficient use of KDE su in .desktop files. It tells KDE su to examine the file specified by file. If this file is
writable by the current user, KDE su will execute the command as the current user. If it is not writable, the command is executed as
user user (defaults to root).
file is evaluated like this: if file starts with a /, it is taken as an absolute filename. Otherwise, it is taken as the name of a
global KDE configuration file. For example: to configure the K display manager, kdm, you could issue kdesu -c kdmconfig -f kdmrc
-i icon name
Specify icon to use in the password dialog. You may specify just the name, without any extension.
-n Do not keep the password. This disables the keep password checkbox in the password dialog.
-p priority
Set priority value. The priority is an arbitrary number between 0 and 100, where 100 means highest priority, and 0 means lowest. The
default is 50.
-r Use realtime scheduling.
-s Stop the kdesu daemon. This is the daemon that caches successful passwords in the background. This feature may also be disabled with
-n when KDE su is initially run.
-t Enable terminal output. This disables password keeping. This is largely for debugging purposes; if you want to run a console mode
app, use the standard su instead.
-u user
While the most common use for KDE su is to run a command as the superuser, you can supply any user name and the appropriate pass-
word.
SEE ALSO
su(1)
More detailed user documentation is available from help:/kdesu (either enter this URL into Konqueror, or run khelpcenter help:/kdesu).
EXAMPLES
Run kfmclient as user jim, and show the Konqueror icon in the password dialog:
kdesu -u jim -i konqueror kfmclient
AUTHORS
KDE su was written by Geert Jansen <jansen@kde.org> and Pietro Iglio <iglio@fub.it>.
AUTHOR
Lauri Watts.
K Desktop Environment Jun 7, 2005 KDESU(1)