Sponsored Content
Operating Systems Linux Ubuntu Run a script at remote server without ssh password Post 302958870 by rbatte1 on Tuesday 27th of October 2015 04:40:03 AM
Old 10-27-2015
If you are connecting as root to the remote server and the setting is PermitRootLogin=no then you will be unable to do this. If you are connecting as another user (non-zero uid) then this flag will have no effect, however you have to consider what happens with the standard profiles for that account logging in, e.g. does it assume a terminal, lock you into an application etc.


Robin
This User Gave Thanks to rbatte1 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issues using ssh from crontab to run remote script from

I have a solaris9 x86 server using ssh as follows: SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0. The remote server solaris9 sparc has exactly the same version ssh installed. I am running a script on my server which includes the following command to run a script on the remote server:... (4 Replies)
Discussion started by: frustrated1
4 Replies

2. Shell Programming and Scripting

run a application from a remote server via script?

I have a ksh script that does a bunch of things, then runs telnet server_b I then manually login, manually run one command (which launches an application with display back to my workstation), then logout at which point the main script takes back over, runs something else, then ends. Is... (4 Replies)
Discussion started by: yankee428
4 Replies

3. Shell Programming and Scripting

Ability to run sas prog on remote server using SSH

Hi, I am trying to run a sas prog on a remote server using ssh. I have got the command that I am using in the below paragraph. With it, I was able to run shell scripts but when I tried 'sas' it errored out. I have got my keys exchanged so when I say ssh serverA I automatically connect to my... (4 Replies)
Discussion started by: coolavi
4 Replies

4. 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

5. Shell Programming and Scripting

Need help on how to exit a script run on a server from a remote server

hi, I am using the below line to run a script from remote server(say server A) to another server(say server B). ssh username@servername ksh script name. The issue is the script logs into server B, executes the script on server B, transfers the file to server A but does not exit from... (4 Replies)
Discussion started by: yohasini
4 Replies

6. UNIX for Dummies Questions & Answers

how to use ssh to run shell script on a remote machine?

how to use ssh to run shell script on a remote machine? ssh user@remote sh ./script.unx i ran the above command ./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND... i tried to run that script from remote server, its working fine do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies

7. Shell Programming and Scripting

Copy and run that script in Remote server

Hi All, I need script to perform below task. 1. I have a script in one server and need to copy this script to remote server 2. login in to remote server 3. run the script which i copied to this server. #!/bin/bash read a scp /tmp/script.sh user@hostname:/tmp ssh user@$a ./scirpt.sh ... (2 Replies)
Discussion started by: bapu1981
2 Replies

8. Shell Programming and Scripting

Script to ssh to remote server

Hi All, I need to prepare a script. Description: Currently i am in server "x(ubuntu os)", here i need to develop a script to ssh to another server "y(ubuntu os)", i have password less authentication to "y". i have done the below #!/bin/bash #ssh to the server "y" and confirming i am... (2 Replies)
Discussion started by: kumar85shiv
2 Replies

9. Solaris

Script to get files from remote server to local server through sftp without prompting for password

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

How to run commands on remote server using ssh password less authentication?

Hi, I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this. I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies
convuser(8)						      System Manager's Manual						       convuser(8)

NAME
convuser - convert user profile information between BASE and ENHANCED formats SYNOPSIS
/usr/tcb/bin/convuser -a [-c] [-i] [-n] [-u] [-R] [-U uid] [-M] [-T template] [-[qv]] [users] /usr/tcb/bin/convuser -b [-T template] [-[qv]] [users] /usr/tcb/bin/convuser -d [-n] [-M] [-[qv]] [users] /usr/tcb/bin/convuser -H FLAGS
-a Converts from BASE to ENHANCED authentication format. This option is incompatible with the -b and -d options. If none of -a, -b, or -d have been supplied, then -a is implied by any of -c, -i, -n, -u, -R, or -U. -b Converts from ENHANCED to BASE authentication format. This option is incompatible with the -a and -d options. The conversion in this case is bring any compatible passwords from the extended profile back to the BASE profile. -c Causes the conversion for -a to create new extended profiles only. If the -c option is given, existing extended profiles will remain unchanged. -d Removes any extended profiles which do not still have corresponding BASE profiles. -i Cause the conversion for -a to invalidate the encrypted password field in the BASE profile if the change to the ENHANCED profile is successful. -n Cause the -a and -d conversions to include NIS passwd.byname map entries in the list of BASE profiles for consideration. -q Cause non-error output to be suppressed. -u Cause the -a conversion to leave the migrated passwords still usable. The default is to pre-expire them. -v Cause more verbose reports of progress to be given. -M Work on NIS master map files rather than the local profiles. This option works on NIS master hosts only. -R Cause newly-created extended profiles to be written only to the /tcb/files directory tree (v4 only). -T template Causes the creation of new extended profiles to use user template as the template for the account default values. Causes the con- version for -b to consider only accounts with template as the associated account template. -U uid Causes newly-crated extended profiles with UID values less than uid to be written to the /tcb/files directory tree (v4 only). -H Cause an extended usage message to be given and no other processing to be performed. DESCRIPTION
The convuser utility is used to provide migration between BASE and ENHANCED security levels, as well as to provide support for the use of existing account-creation scripts. The most common uses are to clean up dangling extended profiles (those without corresponding BASE pro- files) after the removal of the base profiles, and to create new extended profiles to correspond to newly added base profiles. EXAMPLES
To remove dangling profiles: # convuser -d # convuser -Md To finish the addition of new accounts on a system using NIS to supply the extended profile information: # convuser -iu # convuser -Miu To finish the addition of new accounts on a system using NIS to supply the extended profile information: # convuser -iun RELATED INFORMATION
Files: prpasswd(4), authcap(4) Security delim off convuser(8)
All times are GMT -4. The time now is 05:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy