LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2022, 09:06 AM   #1
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Rep: Reputation: 0
Uploading file over Putty using "RAW" connection?


Hi, I'm trying to upload file FROM Ubuntu to a customized distribution of linux.

Now, normally, you just fire up scp in the CLI right? Except... this custom build of linux uses RAW connection, without any encryption, so the "conventional" way of uploading files with scp simply doesn't seem to work, I could be wrong though.

Anyone can tell me what I should do? If this is a no go I'll try to install FTP service on the target server.
 
Old 07-23-2022, 09:32 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
scp uses ssh to transfer files. I am not sure what you mean by raw. Basically you need something that listens i.e. a server and some method that sends data. Depends on what utilities or servers are installed on this custom build.

The simplest way would be using nc which does not use encryption for transmission. There are many ways.
 
Old 07-23-2022, 10:56 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

PuTTY is a client for SSH and other protocols, and one type of connection it can make is "raw" - not "RAW"; it's a word not an acronym - which simply means you directly type the input which is sent over TCP to a specified port on the server. (It can be used to debug plaintext protocols, i.e. HTTP/SMTP/etc).

There must of course be something on the server listening to the requested port which is capable of processing the input it receives.

It does not make sense to attempt to use this mechanism as a means for file transfer - one should use a protocol designed for that purpose: install an SSH server and pick one of scp/sftp/rsync.

 
Old 07-23-2022, 11:19 AM   #4
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
scp uses ssh to transfer files. I am not sure what you mean by raw. Basically you need something that listens i.e. a server and some method that sends data. Depends on what utilities or servers are installed on this custom build.

The simplest way would be using nc which does not use encryption for transmission. There are many ways.
Hi I mean if I need to connect to the server with putty, the protocol?format? is "raw".

So I assumed the file transfer should also be "raw". But normally SCP works by encrypting data that got transferred. I don't know what to do?
 
Old 07-23-2022, 11:20 AM   #5
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by boughtonp View Post
PuTTY is a client for SSH and other protocols, and one type of connection it can make is "raw" - not "RAW"; it's a word not an acronym - which simply means you directly type the input which is sent over TCP to a specified port on the server. (It can be used to debug plaintext protocols, i.e. HTTP/SMTP/etc).

There must of course be something on the server listening to the requested port which is capable of processing the input it receives.

It does not make sense to attempt to use this mechanism as a means for file transfer - one should use a protocol designed for that purpose: install an SSH server and pick one of scp/sftp/rsync.


Hi, my thinking went like this. Since I use "raw" protocol/format/whatever to connect to the server, then scp must be configured to use also "raw" to transfer the file.

Except I don't know how to do that and I have no leads...

BTW isn't SCP service installed by default?
 
Old 07-23-2022, 11:41 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Usually Ubuntu installs scp and ssh by default but what is installed on the custom device? Putty is just a console terminal program not really a file transfer utility.
 
Old 07-24-2022, 07:10 AM   #7
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Usually Ubuntu installs scp and ssh by default but what is installed on the custom device? Putty is just a console terminal program not really a file transfer utility.
Oh I understand that. I now begin to suspect the target system doesn't have any SSH capability at all...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
putty raw connection vs serial connection samdun Linux - Newbie 2 04-24-2014 09:40 AM
Putty RAW mode connection RileyTheWiley Linux - Networking 2 04-06-2013 01:27 PM
VNC over Putty "Network Error: Software Caused Connection abort" bala150985 Linux - Networking 5 01-26-2010 09:02 PM
Difference between using Raw block device with O_DIRECT and Raw Character Device srithi Linux - Newbie 1 08-19-2009 10:52 AM
uploading files using putty ? lozz1978 Linux - Newbie 2 02-20-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration