11-08-2010
It sounds like what you really need is firewall to block your problem SFTP connections. You said you're using Linux, look into the firewall that comes with it. (which I think is iptables - I don't use linux firewalls so I'm not 100% certain anymore).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script??
something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies
2. UNIX for Dummies Questions & Answers
hi all,
i run sqlplus command on unix(HP-UX)
like "sqlplus username/password@serverA @deneme.sql"
but when someone run "ps -ef | grep sqlplus", it can see my username and password :(
How can i hide username and password.
thanx. (1 Reply)
Discussion started by: temhem
1 Replies
3. UNIX for Advanced & Expert Users
Hi ,
I have an issue with sftp username as i have @ character in the username.
eg: username=abc@123
when i do as below,
sftp abc@123@servername # Its taking only 123@servername .
Also, i tried following options,
sftp abc\@123@servername
sftp 'abc\@123'@servername
Please... (2 Replies)
Discussion started by: mohanpadamata
2 Replies
4. Shell Programming and Scripting
Hi All,
Good morning !!
I have to connect to a sftp server using following details,
1) username contains "@" as part of it. eg: xyz@abc@servername
2) We have to use password to connect to the server.
Could you please advise the solution for this?
Thanks in advance
Regards,
Mohan (1 Reply)
Discussion started by: mohanpadamata
1 Replies
5. Shell Programming and Scripting
Hi
I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if their is a corresponding entry. Next ask the user to enter the pin and see if this matches... (5 Replies)
Discussion started by: somersetdan
5 Replies
6. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
7. UNIX for Dummies Questions & Answers
Hi, everyone, I am trying to write a script to login automatically using username and password to an sftp server (the key authentication has been disabled so I cannot use that method).
I tried to search online for a solution and found a way using "expect" but my boss does not want me to use... (4 Replies)
Discussion started by: warmboy610
4 Replies
8. Shell Programming and Scripting
Hi,
I am using public key authentication for login into a remote sftp server (password less login).
so i have set up a password less login according to this link . i have copied the content of my .pub file to remote server's authorized_keys2 file.
i want to find out whether my .pub file... (2 Replies)
Discussion started by: Little
2 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I have an SFTP server where there are user id's created for vendors and given only SFTP access for them (eg: given below)
jim.tran:x:10040:10008:abc.def@ghi.com:/dropbox:/bin/false
They cannot login to the server via SSH and can only do an SFTP. These users are set up as jailed... (1 Reply)
Discussion started by: nathsaba
1 Replies
10. Windows & DOS: Issues & Discussions
Hi all,
For one of our server (Windows 2008R2), we sometimes will received "login failed username password is incorrect" when login in as domain account (the username & password is correct).
Only after a reboot of the server (using local account), we can login without the above error.
Can... (2 Replies)
Discussion started by: beginningDBA
2 Replies
LEARN ABOUT CENTOS
libssh2_userauth_password_ex
libssh2_userauth_password_ex(3) libssh2 manual libssh2_userauth_password_ex(3)
NAME
libssh2_userauth_password_ex - authenticate a session with username and password
SYNOPSIS
#include <libssh2.h>
int libssh2_userauth_password_ex(LIBSSH2_SESSION *session,
const char *username,
unsigned int username_len,
const char *password,
unsigned int password_len,
LIBSSH2_PASSWD_CHANGEREQ_FUNC((*passwd_change_cb)));
#define libssh2_userauth_password(session, username, password)
libssh2_userauth_password_ex((session), (username),
strlen(username),
(password), strlen(password), NULL)
DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3)
username - Name of user to attempt plain password authentication for.
username_len - Length of username parameter.
password - Password to use for authenticating username.
password_len - Length of password parameter.
passwd_change_cb - If the host accepts authentication but requests that the password be changed, this callback will be issued. If no call-
back is defined, but server required password change, authentication will fail.
Attempt basic password authentication. Note that many SSH servers which appear to support ordinary password authentication actually have it
disabled and use Keyboard Interactive authentication (routed via PAM or another authentication backed) instead.
RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a
negative number, it isn't really a failure per se.
ERRORS
Some of the errors this function may return include:
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_PASSWORD_EXPIRED -
IBSSH2_ERROR_AUTHENTICATION_FAILED - failed, invalid username/password or public/private key.
SEE ALSO
libssh2_session_init_ex(3)
libssh2 0.15 1 Jun 2007 libssh2_userauth_password_ex(3)