03-27-2006
I am trying to do the same thing, But in this case, I want the key to be generated for the local machine, coz i need to be root to run a few commands.
Can some one please assist me with this ?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Greetings all,
I'm in the midst of writing a login component for a series of shell scripts. What my login script does is this:
1. Prompt for username and read in username
2. Prompt for destination host and read in destination host
3. run ssh username and destination host
4. After user keys... (0 Replies)
Discussion started by: rockysfr
0 Replies
2. UNIX for Advanced & Expert Users
Greetings all,
I'll just like to know if it is possible to launch a shell script automatically upon a user's successful login into ssh from a remote host, without adding a command parameter to the ssh command...
ie. after keying in ssh username@host (not ssh username@host "command") and upon... (1 Reply)
Discussion started by: rockysfr
1 Replies
3. Shell Programming and Scripting
hi.
I need a bash script which can login to an other mashin via SSH and then run some commands and then return the result to my mashine.
I dont know where to begin, I think first I will need a ssh connection, dont know how to make it,
then , do I need a ftp connection between the 2 mashins to... (5 Replies)
Discussion started by: big_pil
5 Replies
4. Shell Programming and Scripting
hello
anyone have done ssh login script without "expect"
(automatic login from host A / user b to Host B / user b without enter any passwords)?
cheers (2 Replies)
Discussion started by: modcan
2 Replies
5. Shell Programming and Scripting
I want to login to server using ssh or telnet and execute one command then exit to the shell
Please let me know how to write script for this? (1 Reply)
Discussion started by: svenkatareddy
1 Replies
6. Shell Programming and Scripting
I'm trying to write a login script to ssh into a cisco switch that will run some command remotely. Similar to this expect script located here:
SSH login expect shell script to supply username and password
However, that script does not work with cisco ios. Anyway know what the best way to... (1 Reply)
Discussion started by: streetfighter2
1 Replies
7. Red Hat
Hello All,
I am trying to login on server using ssh script & expect.Login to server successful but after login when i hit enter it gets hanged & when pressing CTRL +C it logs me out from the server.
Scripts are as below.
#!/bin/bash
FILE=login.txt
CONNECT=sshlogin.exp
SERVERNAME=$1... (2 Replies)
Discussion started by: ajaincv
2 Replies
8. HP-UX
why I can login by telnet using root account
but when i use login by ssh using root account
it is not successful ,is it different password
i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies
9. Shell Programming and Scripting
how can i use an expect script to do a passwordless ssh login and run a script on a bunch of remote hosts? I do not want to use public key authentication as this would require me to setup the keys on the clients etc.... (2 Replies)
Discussion started by: tdubb123
2 Replies
10. Shell Programming and Scripting
Hello everyone.
I'm a Linux novice trying out a lot of bash scripting lately, as it is so very addictive.
Lately I have been setting up one of my boxes remotely and have been hardening it as much as possible. Please allow me to explain the scenario, as it does tend to become a little... (1 Reply)
Discussion started by: instro
1 Replies
LEARN ABOUT OPENDARWIN
bos_removekey
BOS_REMOVEKEY(8) AFS Command Reference BOS_REMOVEKEY(8)
NAME
bos_removekey - Removes a server encryption key from the KeyFile file
SYNOPSIS
bos removekey -server <machine name>
-kvno <key version number>+ [-cell <cell name>]
[-noauth] [-localauth] [-help]
bos removek -s <machine name> -k <key version number>+
[-c <cell name>] [-n] [-l] [-h]
DESCRIPTION
The bos removekey command removes each specified encryption key from the /etc/openafs/server/KeyFile file on the machine named by the
-server argument. Use the -kvno argument to identify each key by its key version number; use the bos listkeys command to display the key
version numbers.
CAUTIONS
Before removing a obsolete key, verify that the cell's maximum ticket lifetime has passed since the current key was defined using the kas
setpassword and bos addkey commands. This ensures that no clients still possess tickets encrypted with the obsolete key.
OPTIONS
-server <machine name>
Indicates the server machine on which to change the /etc/openafs/server/KeyFile file. Identify the machine by IP address or its host
name (either fully-qualified or abbreviated unambiguously). For details, see bos(8).
In cells that use the Update Server to distribute the contents of the /etc/openafs/server directory, it is conventional to specify only
the system control machine as a value for the -server argument. Otherwise, repeat the command for each file server machine. For further
discussion, see bos(8).
-kvno <key version number>+
Specifies the key version number of each key to remove.
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).
-noauth
Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
bos(8).
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
bos(8).
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command removes the keys with key version numbers 5 and 6 from the KeyFile file on the system control machine "fs1.abc.com".
% bos removekey -server fs1.abc.com -kvno 5 6
PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a
server machine as the local superuser "root" if the -localauth flag is included.
SEE ALSO
KeyFile(5), UserList(5), bos(8), bos_addkey(8), bos_listkeys(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BOS_REMOVEKEY(8)