Something is really wrong here. Most UNIX usernames are not as long as the myemail@myorg.com and some UNIX systems limit the length. I do not think that was meant as a username. It is an ssh connect string.
What does
ssh myemail@myorg.com
show?
I realize that is probably a name you made up for the question.
Next question: did you personally get ssh keys for ftpsite.com for that myemail user for myorg.com?
Last question: This was probably intended as a 'three-way' connection
ssh to myorg.com (as user myemail) with you owning ssh keys
then sftp from myorg.com to ftpsite, send files created by myemail on myorg.com to ftpsite.
ssh myemail@myorg.com wont work, not even with the real data, i'd be doing an ssh to my own domain.
No I don't have ssh keys, I was given a user ID and a password from the vendor running the SFTP Site.
For the last question.. No.
They gave me a user id and password to login to their sftp server in the following format:
SFTP User Name = myemailaddress@mydomain (its my email address)
Password = Regular clear text password.
I am able to get it to work correctly using psftp from a windows command line.
C:\Windows\system32>psftp -l myuserid@myorg.com sftpsite.com
Using username "myuserid@myorg.com".
Property of #Company# Systems. Unauthorized use prohibited.
myuserid@myorg.com@sftpsite.com's password:
Remote working directory is /
psftp>
I can also get it to work using the filezilla windows client.
# sftp -o User='myuser@myorg.com' sftpsite.com
Property of #Company# Systems. Unauthorized use prohibited.
Received disconnect from # SFTP Server IP ADDRESS # port 22:11: Application error
Authentication failed.
Couldn't read packet: Connection reset by peer
I find this discussion interesting. I thought I was familiar with email addresses being used as userid's on sFTP and therefore, by default, containing the @ character. I'm sure that I remember this from years ago.
From your post#7 it seems to me that, since the error mentions 'port' (for the first time????) that the server may not be listening on default port 22 and, if so, a port number would need to be included on your command line. Perhaps talk to the remote server's sysadmin and confirm which port number sFTP is on.
You have a lot of skilled subscribers to this thread now so I'll be interested to see how this develops.
This is correct, but this is not a UNIX username: it rather is an identification similar to what in past times was used in (anonymous) ftp where one entered his own email address. This probably is a chrooted anonymous sftp-server thread-o/p is connecting to.
[root@MyServer ~]# sftp -oUser='myemail@myorg.com' sftpsite.com
Property of #Company# Systems. Unauthorized use prohibited.
Received disconnect from # IP ADDRESS # port 22:11: Application error
Authentication failed.
Couldn't read packet: Connection reset by peer
[root@MyServer ~]# sftp -oUser=myemail@myorg.com sftpsite.com
Property of #Company# Systems. Unauthorized use prohibited.
Received disconnect from #IP ADDRESS# port 22:11: Application error
Authentication failed.
Couldn't read packet: Connection reset by peer
[root@MyServer ~]#
---------- Post updated at 08:13 PM ---------- Previous update was at 08:06 PM ----------
[root@Myserver ~]# bash -version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@Myserver ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[roott@MyServer ~]#
---------- Post updated at 08:23 PM ---------- Previous update was at 08:13 PM ----------
It seems they are running proFTPD:
This is from my debug output:
debug1: Remote protocol version 2.0, remote software version mod_sftp/0.9.8
debug1: no match: mod_sftp/0.9.8
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to sftpsite.com
---------- Post updated at 08:33 PM ---------- Previous update was at 08:23 PM ----------
Trying to escape the @
[root@MyServer ~]# sftp -oUser='myemail\@myorg.com' sftpsite.com
Property of #Company# Systems. Unauthorized use prohibited.
myemail\@myorg.com@sftpsite.com password:
---------- Post updated at 08:35 PM ---------- Previous update was at 08:33 PM ----------
[root@MyServer ~]# sftp -oUser=myemail\@myorg.com sftpsite.com
Property of #Company# Systems. Unauthorized use prohibited.
Received disconnect from #IP Address# port 22:11: Application error
Authentication failed.
Couldn't read packet: Connection reset by peer
[root@MyServer ~]#