Pasting into SSH on remote server causes weird characters aka bracketed pasteUbuntu server remote ssh...
Why would space fleets be aligned?
A Missing Symbol for This Logo
What is the difference between "...", '...', $'...', and $"..." quotes?
How would you say "I like to go bowling" and other suru verbs?
Has any human ever had the choice to leave Earth permanently?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
Strange "DuckDuckGo dork" takes me to random website
How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?
What language shall they sing in?
systemd service won't start nodejs
Eww, those bytes are gross
Definition of "atomic object"
Why are the books in the Game of Thrones citadel library shelved spine inwards?
How do you funnel food off a cutting board?
What will happen if I transfer large sums of money into my bank account from a pre-paid debit card or gift card?
Boss asked me to sign a resignation paper without a date on it along with my new contract
What makes papers publishable in top-tier journals?
What game did these black and yellow dice come from?
Can 5 Aarakocra PCs summon an Air Elemental?
What essential properties make us human?
Cat is tipping over bed-side lamps during the night
How to not let the Identify spell spoil everything?
How to access internet and run apt-get through a middle server?
Non-Cancer terminal illness that can affect young (age 10-13) girls?
Pasting into SSH on remote server causes weird characters aka bracketed paste
Ubuntu server remote ssh troublesI am unable to type polish characters when connecting via sshRemote into Desktop on Ubuntu through SSHServer, Remote Login, SSH?Import SSH keys for remote servercan't ssh into remote machine using blowfishCant SSH to remote server trought VPNSSH Into Server Behind VPNCan't SSH into the Serverssh connection to remote server failed
When I connect to any of my remote Ubuntu servers, most if not all will print extra characters at the front and back of the pasted text.
I'm using putty 0.70 for Windows 10 Pro 64 bit.
0~/home/kreezxil/work/cobbleblock/./mods/clumps-3.1.1.jar1~
The 0~ and 1~ are the extra characters I'd like to make go away.
My locale output on the Ubuntu 16.04.5 LTS server is:
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US:"
LC_ALL=en_US.UTF-8
Any help greatly appreciated.
Amended February 18 2019
I've recently learned this called bracketed paste and when you search google for that term, you find many articles in may situations related to the issue. Nearly all of them describe my problem to a tee but their solutions don't fit me as the problem is occurring while grabbing text from windows 10 and pasting in ssh session on my Linux servers.
Later that Day
On a whim I decided to completely uninstall putty and perform a registry clean up and junk file removal afterwards thus ensuring it and all of it's various settings are removed from my system.
Learned that Windows 10 has it's own SSH now powered by OpenSSH. Tried it and didn't get the bracketed pasting. But didn't like that it didn't provide me enough automation, for instance it lacks -pw (password) option.
Then I reinstalled putty, this time choosing the 32 bit version, I've always used the 64 bit, but this time I went with 32 bit. Success, no more bracketed pasting.
I recognize this like the good comments below is a solution but not THE SOLUTION. I'm not entirely willing to accept the first answer below although it is good as it didn't apply to my situation and even when I asked the question I had not known exactly how to phrase the question. It is my hope that my experience and what I found out will help someone later to resolve a similar issue.
server ssh text putty
add a comment |
When I connect to any of my remote Ubuntu servers, most if not all will print extra characters at the front and back of the pasted text.
I'm using putty 0.70 for Windows 10 Pro 64 bit.
0~/home/kreezxil/work/cobbleblock/./mods/clumps-3.1.1.jar1~
The 0~ and 1~ are the extra characters I'd like to make go away.
My locale output on the Ubuntu 16.04.5 LTS server is:
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US:"
LC_ALL=en_US.UTF-8
Any help greatly appreciated.
Amended February 18 2019
I've recently learned this called bracketed paste and when you search google for that term, you find many articles in may situations related to the issue. Nearly all of them describe my problem to a tee but their solutions don't fit me as the problem is occurring while grabbing text from windows 10 and pasting in ssh session on my Linux servers.
Later that Day
On a whim I decided to completely uninstall putty and perform a registry clean up and junk file removal afterwards thus ensuring it and all of it's various settings are removed from my system.
Learned that Windows 10 has it's own SSH now powered by OpenSSH. Tried it and didn't get the bracketed pasting. But didn't like that it didn't provide me enough automation, for instance it lacks -pw (password) option.
Then I reinstalled putty, this time choosing the 32 bit version, I've always used the 64 bit, but this time I went with 32 bit. Success, no more bracketed pasting.
I recognize this like the good comments below is a solution but not THE SOLUTION. I'm not entirely willing to accept the first answer below although it is good as it didn't apply to my situation and even when I asked the question I had not known exactly how to phrase the question. It is my hope that my experience and what I found out will help someone later to resolve a similar issue.
server ssh text putty
Check the$TERMvalue. Check the setup of your$PS1(prompt) variable in your~/.bashrc, documented inman bash, the "Prompting" section.
– waltinator
Jan 31 at 21:01
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53
add a comment |
When I connect to any of my remote Ubuntu servers, most if not all will print extra characters at the front and back of the pasted text.
I'm using putty 0.70 for Windows 10 Pro 64 bit.
0~/home/kreezxil/work/cobbleblock/./mods/clumps-3.1.1.jar1~
The 0~ and 1~ are the extra characters I'd like to make go away.
My locale output on the Ubuntu 16.04.5 LTS server is:
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US:"
LC_ALL=en_US.UTF-8
Any help greatly appreciated.
Amended February 18 2019
I've recently learned this called bracketed paste and when you search google for that term, you find many articles in may situations related to the issue. Nearly all of them describe my problem to a tee but their solutions don't fit me as the problem is occurring while grabbing text from windows 10 and pasting in ssh session on my Linux servers.
Later that Day
On a whim I decided to completely uninstall putty and perform a registry clean up and junk file removal afterwards thus ensuring it and all of it's various settings are removed from my system.
Learned that Windows 10 has it's own SSH now powered by OpenSSH. Tried it and didn't get the bracketed pasting. But didn't like that it didn't provide me enough automation, for instance it lacks -pw (password) option.
Then I reinstalled putty, this time choosing the 32 bit version, I've always used the 64 bit, but this time I went with 32 bit. Success, no more bracketed pasting.
I recognize this like the good comments below is a solution but not THE SOLUTION. I'm not entirely willing to accept the first answer below although it is good as it didn't apply to my situation and even when I asked the question I had not known exactly how to phrase the question. It is my hope that my experience and what I found out will help someone later to resolve a similar issue.
server ssh text putty
When I connect to any of my remote Ubuntu servers, most if not all will print extra characters at the front and back of the pasted text.
I'm using putty 0.70 for Windows 10 Pro 64 bit.
0~/home/kreezxil/work/cobbleblock/./mods/clumps-3.1.1.jar1~
The 0~ and 1~ are the extra characters I'd like to make go away.
My locale output on the Ubuntu 16.04.5 LTS server is:
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US:"
LC_ALL=en_US.UTF-8
Any help greatly appreciated.
Amended February 18 2019
I've recently learned this called bracketed paste and when you search google for that term, you find many articles in may situations related to the issue. Nearly all of them describe my problem to a tee but their solutions don't fit me as the problem is occurring while grabbing text from windows 10 and pasting in ssh session on my Linux servers.
Later that Day
On a whim I decided to completely uninstall putty and perform a registry clean up and junk file removal afterwards thus ensuring it and all of it's various settings are removed from my system.
Learned that Windows 10 has it's own SSH now powered by OpenSSH. Tried it and didn't get the bracketed pasting. But didn't like that it didn't provide me enough automation, for instance it lacks -pw (password) option.
Then I reinstalled putty, this time choosing the 32 bit version, I've always used the 64 bit, but this time I went with 32 bit. Success, no more bracketed pasting.
I recognize this like the good comments below is a solution but not THE SOLUTION. I'm not entirely willing to accept the first answer below although it is good as it didn't apply to my situation and even when I asked the question I had not known exactly how to phrase the question. It is my hope that my experience and what I found out will help someone later to resolve a similar issue.
server ssh text putty
server ssh text putty
edited Feb 18 at 17:12
Kreezxil
asked Jan 31 at 20:57
KreezxilKreezxil
388
388
Check the$TERMvalue. Check the setup of your$PS1(prompt) variable in your~/.bashrc, documented inman bash, the "Prompting" section.
– waltinator
Jan 31 at 21:01
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53
add a comment |
Check the$TERMvalue. Check the setup of your$PS1(prompt) variable in your~/.bashrc, documented inman bash, the "Prompting" section.
– waltinator
Jan 31 at 21:01
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53
Check the
$TERM value. Check the setup of your $PS1 (prompt) variable in your ~/.bashrc, documented in man bash, the "Prompting" section.– waltinator
Jan 31 at 21:01
Check the
$TERM value. Check the setup of your $PS1 (prompt) variable in your ~/.bashrc, documented in man bash, the "Prompting" section.– waltinator
Jan 31 at 21:01
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53
add a comment |
1 Answer
1
active
oldest
votes
A friend of mine was experiencing this same issue.
Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.
There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.
In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.

add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114550%2fpasting-into-ssh-on-remote-server-causes-weird-characters-aka-bracketed-paste%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A friend of mine was experiencing this same issue.
Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.
There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.
In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.

add a comment |
A friend of mine was experiencing this same issue.
Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.
There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.
In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.

add a comment |
A friend of mine was experiencing this same issue.
Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.
There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.
In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.

A friend of mine was experiencing this same issue.
Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.
There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.
In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.

answered 12 mins ago
KreezxilKreezxil
388
388
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114550%2fpasting-into-ssh-on-remote-server-causes-weird-characters-aka-bracketed-paste%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Check the
$TERMvalue. Check the setup of your$PS1(prompt) variable in your~/.bashrc, documented inman bash, the "Prompting" section.– waltinator
Jan 31 at 21:01
@waltinator I found the type of problem described on the internet as "bracketed paste" bbs.archlinux.org/viewtopic.php?id=174595 and midnight-commander.org/ticket/3207 easily describe the problem I am trying to convey. I think the issue is Windows 10 related as it doesn't happen when I am on the Linux side of my computer.
– Kreezxil
Feb 18 at 15:53