Just adding my 2 cents here.
Try this first (don't add the other commands!):
Does it even connect to the server? Do you get a confirmation? Are you sure that the remote server is actually listening on port 22? (The default for ssh)
If you can connect to the server, try one of those commands at a time.
This step-by-step approach should give you a hint about where the script is stuck during its automated login to the server and execution of those commands.
Let us know the results.
--NOTE: I read again one of your first posts where you say that you can run the connection command. I haven't paid attention to that fact before. Anyway, please post here the results. (Screen caps with blur over username and server would also be helpful)
hi,
i have script that connects to a unix server. however, i want to add condition that if it cannot connects in 10 attemps, it will send email to me.
while -a ${COUNT} -lt 10]
./connect to server.
if status <> 0 then
email to me.
fi
Thanks a lot. (0 Replies)
i want to connect to a remote server through ssh.
i have to also provide password within that script.
after connecting to the remote server i want to do some operations like grep,cd etc
can u pls help me to wite a script.
Thanks (1 Reply)
Hi
i am writing a script in unix where after some validations, i require the script to connect to a windows server and then kich off a batch file there. i tried ftp and got the error message that "the remote host refused an attempted connect operation".
I am able to connect to this unix... (4 Replies)
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server?
I hope my question is clear that what is the... (9 Replies)
Hi,
We are running Linux server and are required to connect to Windows server and fetch the files from windows server.
How can i connect to Windows server from Linux? I have to do this with a automated shell script on Linux
I appreciate your response. (4 Replies)
Hi All,
I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers.
So i am looking for a script to transfer the file automatically from Linux server to Windows server?
Please advise.
Thanks... (3 Replies)
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)
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Hi,
I am a newbie and has been given a task to connect to a windows server from a linux server (using putty of course; for file transfer) that too passwordless.
Searching through google I found "ssh-keygen" but this also couldn't work because as I tried ssh <username>@<windowsServerIP>, it says... (5 Replies)
Discussion started by: pratria
5 Replies
LEARN ABOUT DEBIAN
gftp
GFTP(1) General Commands Manual GFTP(1)NAME
gftp - file transfer client for *NIX based machines.
SYNOPSIS
gftp [options] [[proto://][ user : [pass] @] server [: port ][/ directory ]]
DESCRIPTION
gFTP is a file transfer client for *NIX based machines. It currently has a text interface and a GTK+ 1.2/2.x graphical interface. It cur-
rently supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and FSP protocols.
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.
--info Display some information about how gFTP was built. Please send the output of this command when submitting a bug report.
--version, -v
Display the current version of gFTP.
proto This specifies the protocol that should be used. It can currently be one of the following options: ftp, ftps, http, https, ssh, fsp,
local and bookmark. If omitted, the protocol specified by the default_protocol option will be used.
user The username that will be used to log into the remote server. If omitted, your current username will be used for most protocols. For
the FTP protocol, the anonymous username will be used.
pass The password that will be used to log into the remote server. If omitted, you will be prompted for the password. If you are using
the FTP protocol, and the username is anonymous, then your email address will be used as the password.
server The remote server to connect to.
port The remote port on the server to connect to. If omitted, the default port for the protocol will be used. The port will be looked up
in the services(5) file.
directory
The directory to change to once you are connected to the remote server.
FILES
~/.gftp/gftprc
Per user configuration file. Most of these options can be edited inside gFTP. This file is also commented very well. ~/.gftp/book-
marks
Per user bookmarks file.
BUGS
If you find any bugs in gFTP, please report them to GNOME's Bugzilla at http://bugzilla.gnome.org/
AUTHOR
Brian Masney <masneyb@gftp.org> - http://www.gftp.org/
MARCH 2007 GFTP(1)