01-23-2009
Did you check with your provider if they allow inbound connections. Some do, some block the protocols you mentioned above.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please advise,
The previous thread asked about the automated transfer of files between two servers. The question is - is there any way of encrypting the password within the script or is it a matter of setting the permissions settings on the script so that it can only be executed and possibly... (1 Reply)
Discussion started by: rdbooth
1 Replies
2. Shell Programming and Scripting
Hi everybody,
My bash script is trying to connect to a remote database using the 'sqlplus' binary.For this i set(export) the variable TWO_TASK to the value of database name excluding the dot extension part.
Can anyone explain me what's the significance of this TWO_TASK variable while... (8 Replies)
Discussion started by: DILEEP410
8 Replies
3. Shell Programming and Scripting
I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks. (1 Reply)
Discussion started by: developncode
1 Replies
4. Red Hat
From a host A an application is trying to connect to host B.
From firewall side I can see packets dropped coming from host A to host B.
I've access to host A: how can I know which "application" is trying to connect to host B?
Thanks,
Marco (3 Replies)
Discussion started by: marcopb
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally.
This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a... (1 Reply)
Discussion started by: daveu7
1 Replies
6. Shell Programming and Scripting
Checking crontab job entry in 3 different hosts Hi Gurus,
I am trying to connect to remote host from current host to check crontab entries. I have started like this
ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l"
I got this error ?
ssh:... (1 Reply)
Discussion started by: rocking77
1 Replies
7. 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
8. Shell Programming and Scripting
I am connecting to remote server and try to check if files with timestamp as Today's day are on the directory. Below is my code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;
Today=`date +%Y%m%d`;
if ;then
echo "We... (1 Reply)
Discussion started by: digioleg54
1 Replies
9. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
10. Programming
Hey
i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command
i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ?
i need it to be cross platform .
Thanks (0 Replies)
Discussion started by: umen
0 Replies
LEARN ABOUT CENTOS
libssh2_channel_forward_listen_ex
libssh2_channel_forward_listen_ex(3) libssh2 manual libssh2_channel_forward_listen_ex(3)
NAME
libssh2_channel_forward_listen_ex - listen to inbound connections
SYNOPSIS
#include <libssh2.h>
LIBSSH2_LISTENER * libssh2_channel_forward_listen_ex(LIBSSH2_SESSION *session, char *host, int port, int *bound_port, int queue_maxsize);
LIBSSH2_LISTENER * libssh2_channel_forward_listen(LIBSSH2_SESSION *session, int port);
DESCRIPTION
Instruct the remote SSH server to begin listening for inbound TCP/IP connections. New connections will be queued by the library until
accepted by libssh2_channel_forward_accept(3).
session - instance as returned by libssh2_session_init().
host - specific address to bind to on the remote host. Binding to 0.0.0.0 (default when NULL is passed) will bind to all available
addresses.
port - port to bind to on the remote host. When 0 is passed, the remote host will select the first available dynamic port.
bound_port - Populated with the actual port bound on the remote host. Useful when requesting dynamic port numbers.
queue_maxsize - Maximum number of pending connections to queue before rejecting further attempts.
libssh2_channel_forward_listen(3) is a macro.
RETURN VALUE
A newly allocated LIBSSH2_LISTENER instance or NULL on failure.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket.
LIBSSH2_ERROR_REQUEST_DENIED - The remote server refused the request.
LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block.
SEE ALSO
libssh2_channel_forward_accept(3)
libssh2 0.15 1 Jun 2007 libssh2_channel_forward_listen_ex(3)