Data transfer in Linux

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Data transfer in Linux
# 1  
Old 07-01-2015
Data transfer in Linux

Please let me know which ports are used for data transfer, as per my understaning in Linux below ports are used for data transfer from windows to Linux.

Code:
 ftp 21 
 sftp 22 (Most secure Port)
 telnet 23

any other port?

wheather we can change the port no 22 to any other port no for a particular user only and how?

Last edited by rbatte1; 07-01-2015 at 07:05 AM..
# 2  
Old 07-01-2015
To change ports SSH ports, first edit as root, the sshd configuration file.

Code:
vi /etc/ssh/sshd_config

Then edit the line which states 'Port 22' and choose an appropriate port not already used on the system.

Doing this, you must be aware that some ports should NOT be used (0 through 1023) and better avoid those from 1024 through 49151. Pick up one from 49152 through 65535 and you'll be fine for now.

Last, restart SSH :

Code:
/etc/init.d/ssh restart

And then see if SSH is listening on the new port (Port number now needs to be declared).

Code:
ssh username@hostname.com -p 49951

Port redirection may also be an option (see in your router). I don't know what you're aiming at. Could you be more specific ?
# 3  
Old 07-01-2015
Thanks Vincent72 for quick reply but my requirement is ,I have to allocate different port no for ssh for specific user only, other users will continue with port 22 only. how to achieve this?
# 4  
Old 07-01-2015
Just add additional port(s) in the config file sshd_config

As per manual page.
Code:
Port     Specifies the port number that sshd(8) listens on.
            The default is 22.  Multiple options of this type are permitted.  See also
             ListenAddress.
.....
             If port is not specified, sshd will listen on the address and all
             prior Port options specified.  The default is to listen on all
             local addresses.  Multiple ListenAddress options are permitted.
             Additionally, any Port options must precede this option for non-
             port qualified addresses.

It is a good thing to read those.

Regards
Peasant.
# 5  
Old 07-01-2015
Quote:
Originally Posted by manoj.solaris
Thanks Vincent72 for quick reply but my requirement is ,I have to allocate different port no for ssh for specific user only, other users will continue with port 22 only. how to achieve this?
Not sure to understand... Let's say you have user1's SSH port set on 49592 on his machine. That means you can reach him by ssh on this port. Other users on the network will remain accessible on port 22.

To be more specific, are you trying to reach one user in particular from outside of the network at a specific port or are we talking of doing so from the same network ?
# 6  
Old 07-01-2015
Say user A,B,C should be able to connect ssh only on port 22,

user D will be able to connect only on port 49592 for ssh ,not able to connect on port 22,
# 7  
Old 07-01-2015
Quote:
Originally Posted by manoj.solaris
Say user A,B,C should be able to connect ssh only on port 22,

user D will be able to connect only on port 49592 for ssh ,not able to connect on port 22,
From network A to network B or within the same network ?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Data transfer Time calculation

1 TB of data needs to read through 4 I/O channesl, each channels supports - 100 MB/s, What is average time taken to read the data ? Please give the formula for my understanding (2 Replies)
Discussion started by: Srini.rk1983
2 Replies

2. Windows & DOS: Issues & Discussions

DEC 2000 Data Transfer to PC

Hello - My first post here. I did some looking around; wasn't sure where to jump in or if something like this has been covered. I have a DEC 2000 Alpha that was turned off probably 6 years ago once I had made the transition of programs and most files to the desktop PC. I have the idea... (4 Replies)
Discussion started by: KSchrader
4 Replies

3. UNIX for Dummies Questions & Answers

Data transfer to excel

i have two excel sheets with cpu uasge and memory usage in the follwing format: sheet 1: 22,33 sheet 2: 55,66 i need to display in the below format: servername cpu mem ser1 22 33 ser2 55 66 am using UNIX os. can anyone help me... (2 Replies)
Discussion started by: arunmanas
2 Replies

4. Solaris

Data Transfer

We have a data on the disk that was copied from HP N4000 running HPUX 11.11 and it was created with vxfs version 4. We need to transfer this data to Sun server, how might this be done? (2 Replies)
Discussion started by: Kjons76
2 Replies

5. UNIX for Dummies Questions & Answers

Transfer data from one file to another

Hi, I'm relatively new to shell scripting, Ive worked on a few basic scripts and used most of the unix commands in the simplest of situations. But I am now faced with a task that's seems to be beyond me. I have a file with some data in the form of rows and columns : 123 4536 abcd4 677 bbb... (1 Reply)
Discussion started by: inquisitive101
1 Replies

6. SCO

data transfer from serial port

dear sir, pls. can you help me ? , my os is unix sco 5.0.4 and ,server dat derive (1,4gb) not working, now i want to transfer my server data in other machine (unix/other possible) by serial port/other port comminication. thanks pankaj raval (2 Replies)
Discussion started by: pankajbraval
2 Replies

7. AIX

FTP - Data Transfer Limitations.

Hi, I have to transfer data from our production site to DR site(another city). I am using FTP for transfering data. But I am unable to get the same data transfer rate on AIX machines, one I am geting on windows machines. I want to know, is there any constraint on data transfer using FTP on AIX... (2 Replies)
Discussion started by: system-admin
2 Replies

8. UNIX for Advanced & Expert Users

data corruption with ftp transfer

Hi again, first of all thanks for you help on my last problem, the problem is solved now. But I have many problem :) This time, I transfered a big file, ~3,5 GByte, with ftp from a Sun machine to a linux box, RedHat 7.3. But the file recieved on the Linux Box is corrupt, with smaller files... (12 Replies)
Discussion started by: malcom
12 Replies

9. UNIX for Dummies Questions & Answers

How much data will transfer at 100 full

I am trying to determing how long it will take to transfer 384 Gb of data across a 100 Mb full ethernet. If I am correct, I come up with 36 Gb per hour. Surely that is not correct. I assumed 100 megabit per second is 10 megabyte per second, which is 600 megabytes per minute and 36 GB per hour.... (3 Replies)
Discussion started by: 98_1LE
3 Replies
Login or Register to Ask a Question