• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

file copy from Linux server to local machine


Hi,

I connected to Linux machine through Tera-terminal from local machine. I am able to log in successfully.
I have One file which I want to copy on my local machine (from this machine I connected to this Linux machine through tera-terminal)


Please help


Thanks
Manoj
0
palhade
Asked:
palhade
  • 6
  • 4
  • 3
  • +1
2 Solutions
 
fosiul01Commented:
is your tera-terminal installed on windows ??

I never used tera-terminal, i alwasy used ssh...

but if you have shell access then you can use scp command to do this

to copy form linux server to linux client

from linux client :

scp filename root@ip-of-your-server:filename

0
 
palhadeAuthor Commented:
Hi,
Thanks for your quick reply. I got following reply
 
ssh: connect to host 10.287.122.183 port 22: Connection refused
lost connection
 
please help
0
 
ai_ja_naiCommented:
you can use scp or rsync, depending if you have ssh or not
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
gheistCommented:
There is utility called winscp.
And also putty is 1000 times user friendlier than TeraTerm
0
 
fosiul01Commented:
about port 22 confused

you need to open port 22 by iptables

iptables -A INPUT -p tcp --dport 22 -j ACCEPT

then save the iptables
then restart the iptabes
0
 
palhadeAuthor Commented:
how and where to write this command
"iptables -A INPUT -p tcp --dport 22 -j ACCEPT"
0
 
fosiul01Commented:
in linux Server
from shell just execute that command

what OS you got ??

and make sure sshd is running

you can check if sshd is running


[root@localhost www]# lsof -i TCP:22

COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
sshd    5490 root    3u  IPv6  10477       TCP *:ssh (LISTEN)
0
 
palhadeAuthor Commented:
Hi,
 
I am having Windows XP - SP2
0
 
fosiul01Commented:
Ok so you are trying to connect to linux server from Windows xp ??
0
 
gheistCommented:
Install WinSCP, enter IP and auth names to your Linux server and you are all set. I am unsure if TeraTerm is able to do zmodem, but using zmodem it is possible to transfer files over terminal session using SecureCRT, but not PuTTY
0
 
fosiul01Commented:
if you are trying to copy file from linux to windows, and if the linux server is located remotely
then your solution is

wincp or cygwin

here i guess, cygwin is same as tera-terminal

you would not be able to copy file by using putty,

you said, when you are trying to run scp command,its givving port 22 refused

did you run that by tera-tem??
0
 
palhadeAuthor Commented:
i am trying to connect to linux server from Windows xp ??

0
 
fosiul01Commented:
You are not giving proper answer!!!

1. you can use wincp
2. you can use cygwin , cygin will give you root access like linux environment

but i need to know :

you said you are getting port 22 refused,
how did you get that ?? from tera terminal ??

have you check if ssh port 22 is running on the server ??


0
 
gheistCommented:
You are trying to connect from Linux side to Windows - that will not work.
Install SCP client on windows and transfer all your files.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now