06-05-2009
[FONT=Arial]It looks like your SFTP server can resolve the IP of your client:
Quote:
debug3: Trying to reverse map address 10.x.x.x.
It would be worth putting your client machine's name and IP address into the hosts file of the SFTP server machine.
It looks like SSHD does not get your entered password:
Quote:
debug2: input_userauth_request: try method keyboard-interactive
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=patrol devs=
debug1: kbdint_alloc: devices ''
debug2: auth2_challenge_start: devices
But it then tries to use a keyboard entered password and lets the patrol user on (hence announcing the last failed login):
Quote:
Failed keyboard-interactive for patrol from 10.x.x.x port 62644 ssh2
but then succeeds in logging the patrol user on:
Quote:
debug3: aix_restoreauthdb: restoring old registry ''
Accepted password for patrol from 10.x.x.x port 62644 ssh2
debug3: AIX/setauthdb set registry 'files'
debug1: AIX/loginsuccess: msg 1 unsuccessful login attempt since last login.
Last unsuccessful login: Thu Jun 4 13:10:53 EDT 2009 on ssh from ftp-hostname
Last login: Thu Jun 4 13:07:29 EDT 2009 on ssh from ftp-hostname
debug3: aix_restoreauthdb: restoring old registry ''
debug1: audit event euid 0 user patrol event 2 (SSH_authsuccess)
debug1: Entering interactive session for SSH2.
But then shuts down:
Quote:
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 1040638
debug1: session_exit_message: session 0 channel 0 pid 1040638
debug2: channel 0: request exit-status confirm 0
debug1: session_exit_message: release channel 0
debug2: channel 0: write failed
debug2: channel 0: close_write
Prior to this close down is when sshd invokes ftp-server, perhaps that is the problem?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
when ever I issue clear command it the system says:
bash-2.03$ clear
'xterm': unknown terminal type.
but if I clear as root, it works fine.
Also,
bash-2.03$ cd /usr/share/lib/terminfo
bash-2.03$ ls
1 2 3 4 5 6 7 8 9 A B G H M P S a b c d e f g h i j k... (6 Replies)
Discussion started by: rakeshou
6 Replies
2. Shell Programming and Scripting
Hi,
I am curious about this script , how it is running ..?
#!/bin/sh
echo "OK, starting now..."
ftp remotehost <<EOF
When I run , it is asking
OK, starting now...
Password:Name (remotehost):
SHould I enter only password ?
and explain me how it works..
thanks in advance.. (3 Replies)
Discussion started by: hegdeshashi
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
It seems on a machine that I am responsible for supervising only root can use ssh/sftp services. I have looked at sshd_config and do not see anything that can fix this. PermitRootLoggin is enabled but that option does not preclude other users from using ssh/sftp services. When I try and... (5 Replies)
Discussion started by: mojoman
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Could you please suggest a tool that connects like WINSCP/Putty and allows me to search a remote Unix directory for a certain text pattern (grep) ?
Regards,
Bhanja. (1 Reply)
Discussion started by: bhanja_trinanja
1 Replies
5. Cybersecurity
Hi,
I set up the keys on local and remote server. If I simply do:
sftp xxx.xxx.xxx.xxx
It works without asking for a password. But if I change the command to:
sftp user@server it prompts me for password.
Anybody know how to rectify this? Thanks a bunch.
EDIT: I copied the key... (3 Replies)
Discussion started by: tetra
3 Replies
6. Programming
Dear community,
I'm driving crazy with a strange issue.
I have a simple script to transfer a file to a remote system:#!/bin/bash
echo "put /tmp/server.log" > /tmp/server1_transfer.sftp
sftp -b /tmp/server1_transfer.sftp user@10.99.1.2:Between client and server there is a SSH KEY, so if I run... (15 Replies)
Discussion started by: Lord Spectre
15 Replies
7. AIX
Hello
i am running AIX 6.1. i recently changed the root password using passwd and pwdadm. while the new password works fine, i am still able to login using the old password. is there anyway this can disabled\fixed
thanks (5 Replies)
Discussion started by: dnlsingh
5 Replies
8. UNIX for Advanced & Expert Users
Hi,
It is my first post here - I am Krzysztof http://forum.synology.com/enu/images/smilies/icon_smile.gif
I have configured my linux based server (it is Synology DS1813+) to be accessible only via SSH and only with public certificates (my /etc/ssh/sshd_conf below).
Both login into shell... (1 Reply)
Discussion started by: hicnar
1 Replies
9. Shell Programming and Scripting
Hi,
I am trying to schedule a script that starts on reboot.I came across chkconfig utility to schedule scripts on reboot.
Problem here is can i how to use this chkconfig to schedule a script that runs a s normal user.
Or if there is any other function to schedule on reboot as normal user... (4 Replies)
Discussion started by: praveena kotapa
4 Replies
10. Shell Programming and Scripting
I am sorry if i post in wrong Form.
i have AIX server in which ssh works for all users but sftp only works for root user .
it is too much important for me to solve this .
Your help will be greatly appreciated. (1 Reply)
Discussion started by: khalid khanAIB
1 Replies
LEARN ABOUT X11R4
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)