Has anyone heard of an OpenSSH client being compiled with an additional command-line option for password input?
I realize there are reasons to NOT do this, and I realize you can achieve the same type of thing with keys, but I am specifically looking to pass the username & password BOTH on the command line... (IE - allowing for one-shot remote commands)
currently there is a script in place of myssh that uses Expect and Tcl to capture the output of the system-default SSH, but I would like to get rid of it and use a straight binary if possible.
Any ideas? Or should I go back to brushing up on my C/C++ and compile the option into my own version called 'myssh'?
How would I combine something like:
localserver# ssh remoteserver
remoteserver# find blah blah blah
into a one liner that would ssh to the remote server and run the find command, so I could put it in a script to automatically go out and run things on remote servers with out needed user... (2 Replies)
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)
Dear All,
I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually...
In short I dont want to connect to a diff server via ftp interactively.
Any suggestion...looking... (8 Replies)
I have this command that i am calling from php (exec()):
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12
and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:
I need script that will fill the password... (3 Replies)
Hi, I'm writing a script,
in the script I need to use tcpdump to capture some packets
however it needs root priviledge
my computer is configured by school and I have no real root priviledge
so I can't use sudo on my computer,like
Code:
sudo tcpdump ......
I have to use a limited... (1 Reply)
Hi Experts,
I have specific requirement where I want to pass the password with the ssh username@hostname command .
I dont want to use RSA public and private keys also. Because that will be on production server and no one wants to give access like that.
Second thing it is production... (14 Replies)
Hi,
I have followed the below commands for key generation and ssh from one server to another with user mqm
cd /var/mqm/.ssh
mqm@A:~> ssh-keygen -t rsa
<public key creation>
mqm@A:~> ssh mqm@B mkdir -p .ssh
mqm@B's password: <entered_password>
mqm@A:~> cat /var/mqm/.ssh/id_rsa.pub | ssh... (4 Replies)
john-test:/root> ssh -q chicago-ser uname;date
Linux
Fri Oct 13 16:41:11 GMT 2017
How I can print on the same line like this :
Linux Fri Oct 13 16:41:11 GMT 2017 (2 Replies)
Discussion started by: jhonnyrip
2 Replies
LEARN ABOUT REDHAT
gftp
GFTP(1) General Commands Manual GFTP(1)NAME
gftp - a graphical ftp client
SYNOPSIS
gftp [options] [[proto://][ user : [pass] @] site [: port ][/ directory ]]
DESCRIPTION
gFTP is a multiprotocol file transfer program for X Windows and the console. It features support for the FTP, SSH, HTTP, and local file
system protocols, simultaneous downloads, resuming of interrupted file transfers, file transfer queues, downloading of entire directores,
ftp and http proxy support, remote directory caching, bookmarks menu, stop button and many more features
OPTIONS
You may enter a url on the command line that gFTP will automatically connect to when it starts up.
--help, -h
Display program usage, and quit
--version, -v
This will display the current version of gFTP, and exit
--download, -d
This tells gFTP to download the files and directories specified in the url passed on the command line.
user This is the username that you will login as to the remote site. If no username is supplied, the default is to login as anonymous.
pass This is the password you will use to login to the remotesite. If you do not enter a password, then gFTP will ask you for one when it
starts up. I do not recommend entering your password on the command prompt. Anyone that has access to your machine will be able to
see your username and password with the ps(1) command. If you are logging in as anonymous, you do not need to pass a password since
gFTP will automatically send your email address as your password.
site This is the remote site you want to connect to
port This is the port that the remote server is listening on. If you do not enter a port, it will default to using the ftp port listed in
the services(5) file. If the entry doesn't exist there, it will default to port 21.
directory
This is the default directory to change to once you are connected to the remote server.
FILES
~/.gftp/gftprc
Per user configuration file. This file is commented very well, so that is why there isn't a manpage for it. Most of the options in
here can be set inside gFTP itself.
BUGS
If you find any bugs in gFTP, please report them directly to the author.
AUTHOR
Brian Masney <masneyb@gftp.org> - http://www.gftp.org/
FEBURARY 2001 GFTP(1)