Displaying 20 results from an estimated 30000 matches similar to: "Allow utf-8 usernames in scp"
2001 Feb 08
1
username check in scp
Hi
a fellow debian developer pointed it out to me, that ssh itself does not
check the username that is provided for login into a remote host, but
that scp checks it. I could verify that the current openssh code from
cvs still has a check for the username in scp.c but not in ssh.c. So I
created the attached small patch to remove the username check from scp.
I hope ?t's correct and that you
2012 Mar 06
1
Invalid user name: function okname() in scp.c
Hi OpenSSH developers
In the source file *scp.c* there is a function called *okname(char
*cp0)* that validates the entered username by using the scp command as
follows:
*
*[ Fragment scp.c start ]
...
int okname(char *cp0)
{
int c;
char *cp;
cp = cp0;
do {
c = (int)*cp;
if (c & 0200)
goto bad;
if (!isalpha(c) &&
2010 Mar 31
1
scp reject remote users with space in username
Hello,
I have noticed that since release 5.x of openssh, the scp command
rejects remote user names with white spaces. (We have such user names on
Windows hosts)
For instance:
$ scp myfile "my user"@machine:.
used to work with openssh-4.2p1 and fails with 5.2p1 and 5.3p1:
my user: invalid user name.
I have traced this down to revision 1.129 of scp.c which now calls okname().
OTOH,
2009 Apr 10
1
'#' in usernames with scp
Hello,
Some hosting companies insist on having usernames of the form
user#account(@example.com). The ssh client is quite happy with such
usernames, but scp fails with 'invalid user name'. Looking at the
source code, scp rejects ' " ` # and ' ', whereas ssh apparently
enforces no such restriction.
My question is twofold:
Firstly, why do ssh and scp behave differently?
2002 Apr 12
1
scp.c::okname() problem
Why does the local scp determine what characters are valid in a remote
host userid?
A friend of mine just had his ISP convert him to using a userid of the
form 'user#isp-acct' (eg, "ssh -l 'joe#foo.org' foo.org" is used to
login).
The OpenSSH ssh and sftp commands both allow this form of userid.
However, it seems that scp has its very own idea of what characters
are
2000 Oct 11
2
scp -L option
Hi there,
I have a need to have scp pass the -P option to ssh
to "bypass" the packetfilters that doesn't allow connections
to return to arbitary "priviledged" ports, ie. ports <1024.
See attached context sensitive diffs against 2.2.0p1
to please integrate.
Thanx
Hendrik Visage
-------------- next part --------------
*** 1.1 2000/10/11 13:31:45
--- scp.c 2000/10/11
2000 Dec 12
1
scp and filenames with weird characters
I've experienced some troubles using scp with remote files with spaces,
amphersands or parantheses in their filenames on Linux hosts.
This happens:
stain at false:~$ scp "bender.linpro.no:blapp blapp" .
scp: blapp: No such file or directory
scp: blapp: No such file or directory
stain at false:~$ scp "bender.linpro.no:blapp&blapp" .
bash: blapp: command
2003 Feb 01
0
[Bug 483] New: scp issues "invalid user name" for a user name containing a blank
http://bugzilla.mindrot.org/show_bug.cgi?id=483
Summary: scp issues "invalid user name" for a user name
containing a blank
Product: Portable OpenSSH
Version: 3.5p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: scp
AssignedTo:
2000 Jul 07
0
Patch to add scp -L option
Here is a patch to scp made against openssh-2.1.1p2 that adds the -L option to
scp. The -L option tells scp to use nonprivilaged ports (by passing ssh the -P
option). The non-free ssh's scp has this option, and it is required under some
firewall setups (like mine) for scp to function.
Please let me know if there are any problems with this patch, or if there is
anything I can do to help get
2003 Jan 23
0
[Bug 472] New: scp won't accept 'hash' character in usernames, ssh will
http://bugzilla.mindrot.org/show_bug.cgi?id=472
Summary: scp won't accept 'hash' character in usernames, ssh will
Product: Portable OpenSSH
Version: 3.5p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: scp
AssignedTo: openssh-unix-dev at mindrot.org
2000 Dec 11
2
Point in usernames / scp
Hi,
we are using usernames on our systems that contain a point '.', like
"r.john".
We found it necessary to patch the source to make the "scp" command work
with those usernames.
Cheers
Kai
--- openssh-2.2.0p1/scp.c Wed Aug 30 01:11:30 2000
+++ withpoint/scp.c Mon Dec 11 02:06:35 2000
@@ -1042,7 +1042,7 @@
c = *cp;
if (c & 0200)
goto bad;
- if
2003 Jan 23
2
[Bug 472] scp won't accept 'hash' character in usernames, ssh will
http://bugzilla.mindrot.org/show_bug.cgi?id=472
------- Additional Comments From chuzwuzza at optusnet.com.au 2003-01-23 17:15 -------
Created an attachment (id=207)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=207&action=view)
Patch to allow 'hash' character in scp usernames
------- You are receiving this mail because: -------
You are the assignee for the bug, or
2013 Dec 29
8
[Bug 2192] New: scp output alignment bug with UTF-8/multibyte sequences
https://bugzilla.mindrot.org/show_bug.cgi?id=2192
Bug ID: 2192
Summary: scp output alignment bug with UTF-8/multibyte
sequences
Product: Portable OpenSSH
Version: 6.4p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: scp
2001 May 12
4
Erase the source file open; specify a tempfile name option
I'm curious how to go about submitting a suggestion that affects both
the original BSD version and the portable release. A few days ago I
sent off a BSD-relative patch to openssh at openssh.com. Is this the right
thing to do? I didn't hear anything back, but it's only been 3 days, so
I'm probably just being too antsy.
In the meantime, maybe someone else out there would like to
2006 Feb 26
2
[Bug 1164] scp with spaces username no longer works
http://bugzilla.mindrot.org/show_bug.cgi?id=1164
Summary: scp with spaces username no longer works
Product: Portable OpenSSH
Version: 4.3p2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: scp
AssignedTo: bitbucket at mindrot.org
ReportedBy: dtucker at
2017 Aug 04
4
Filter files received on scp server
Hey,
So, I would be looking at type A. Forgive me if my understanding of how OpenSSH operates is not reflective of reality. I am assuming that, the file transfer is happening somewhat logically, with a name being known, content written, blah blah.
>From reading scp.c, it appears that, the client end at least knows the file name so I must assume the server end must be given it.
I am hoping to
2016 Jan 19
6
FWD: [patch] scp + UTF-8
Hi,
Martijn sent the following patch to me in private and agreed that i post
it here.
In any other program in OpenBSD base, i'd probably agree with the
basic approach. Regarding OpenSSH, however, i worry whether wcwidth(3)
can be used. While wcwidth(3) is POSIX, it is not ISO C. Does
OpenSSH target platforms that don't provide wcwidth(3)? If so,
do you think the problem can be solved
2000 Jul 20
3
scp over 2 hosts
Hi folks,
I have the that I must copy some through a Plag-Gateway of a Firewall over 2 host. A secure connection via "ssh - t hosta ssh -t hostb" works fine, but does this work with scp too? Icould not realize it either with scp (1.2.27 of ssh.com) or scp from openssh. Do you have any ideas?
Thanks
Stephan
2020 Jul 31
0
[Bug 831] Allow agent forwarding in sftp & scp
https://bugzilla.mindrot.org/show_bug.cgi?id=831
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2683|0 |1
is obsolete| |
Attachment #3328|0 |1
is
2000 Mar 09
1
Patch for scp (openssh 1.2.2p1)
Hi
While ssh allows for usernames containing a dot, scp gives an error
"Invalid user name". The following patch fixed that behaviour:
diff -ru scp.c-save scp.c
--- scp.c-save Thu Mar 9 12:21:43 2000
+++ scp.c Thu Mar 9 12:22:25 2000
@@ -1062,7 +1062,7 @@
c = *cp;
if (c & 0200)
goto bad;
- if (!isalpha(c) && !isdigit(c) && c !=