Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Problem with SFTP Command line, "@" in username.


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Problem with SFTP Command line, "@" in username.

Hi Guys Any help is appreciated very much!

I'm trying to use SFTP to an external server using the native SFTP Client in RHEL 6 and 7.

I've been given a username on the remote SFTP Server of myemail@myorg.com.

I can not seem to escape that @ sign no matter what I do.

I've tried these examples and several other iterations of the same thing:
Code:
sftp "myemail\@myorg.com" remoteftpsite.com
sftp 'myemail@myorg.com' remoteftpsite.com
sftp myemail\@myorg.com' remotesftpsite.com
sftp myemail\100myorg.com remotesftpsite.com

For whatever reason, I can not simply get it to connect using the credentials myemail@myorg.com.

Any help is appreciated very much!!
# 2  
Try:

Code:
sftp 'myemail@myorg.com'@remoteftpsite.com

# 3  
That way wont connect at all.

What do you think of that "port 22:11" I've never seen that before...

Code:
# sftp 'myemail@myorg.com'@ftpsite.com
#BANNER#
Received disconnect from #IP ADDRESS# port 22:11: Application error
Authentication failed.
Couldn't read packet: Connection reset by peer

# 4  
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
Code:
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
1. ssh to myorg.com (as user myemail) with you owning ssh keys
2. then sftp from myorg.com to ftpsite, send files created by myemail on myorg.com to ftpsite.

Was this ever explained to you this way?
# 5  
Yes, something definitely off!

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.
Code:
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.
# 6  
how about....
Code:
sftp -oUser='myemail@myorg.com' remoteftpsite.com

or loose the single quotes......
# 7  
I tried it with both regular and double quotes.

Code:
# 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

Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies

2. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

3. UNIX and Linux Applications

Problem on SQLplus command ""bash: sqlplus: command not found""

Hi all, i face an error related to my server ""it's running server"" when i use sqlplus command $ sqlplus bash: sqlplus: command not found the data base is up and running i just need to access the sqlplus to import the dump file as a daily backup. i already check the directory... (4 Replies)
Discussion started by: clerck
4 Replies

4. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

5. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

6. Shell Programming and Scripting

Problem with "find" and "grep" command

I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank). In a first approach I coded: find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt But this doesn't work. I got an error (under Ubuntu): grep:... (5 Replies)
Discussion started by: pstein
5 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. UNIX and Linux Applications

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or question of my own) is: Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

10. UNIX for Dummies Questions & Answers

Unix "at" / "Cron" Command New Problem...Need help

Hi All, I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies

Featured Tech Videos