JAVA SCRIPT

RH033 12 . NETWORK CLIENTS



Browsing net in text

1. elinks <url> =Open a url
2. wget <downloads url> =Download url and store it under file in ur pwd

REMOTE LOGIN

1. ssh <remoteip> =Remotely login to a machine as root by default

2. ssh <user@remoteip> =Remotely login as normal user


COPY FILE FROM MACHINE TO MACHINE OVER NETWORK

Methods to copy file over network

1.scp -> secure copy
2.ftp -> file transfer protocol
3.lftp -> line file transfer protocol
4.gftp -> graphical file transfer protocol
5.telnet


1.scp 

copy file from local to remote


a. scp <file1> <remoteip:/filepath> -->copy FROM local TO remote.

scp abc 192.168.0.1:/123 -->copy abc file to 192.168.0.1 's /123 dir.


copy file from remote to local

b. scp <remoteip:/path> /filepath --> copy FROM remote TO local

scp 192.168.0.2:/var/abc /root --> copy file /var/abc from 192.168.0.2 to ur machines /root dir

copy DIR from remote-local or local-remote use -r option

scp -r <remoteip:/path> /filepath --> 
(copy FROM remote TO local)



2. ftp

a. Anonymous login --> Allows users to login without a/c info about remote machine, but you get acess to only files of pub dir allows only get(download) but not put(upload)

ftp <remoteip>
user anonymous
pass ......... //blank passwd

ftp> pwd -->shows pwd as / ,but ur placed under pub dir only.
ftp> ls -->shows remote machines file/dir list
ftp> ls -->shows remote machines file/dir list
ftp> !ls -->shows local machines file/dir list
ftp> get <file> -->Get file FROM remote machine
ftp> bye -->come out of ftp prompt

b. Non-Anonymous login --> Allows users to login with a/c info about remote machine,ftp allows login only as normal user.

ftp <remoteip>
user u1 //allows only to login as normal user
pass redhat

ftp> pwd -->shows pwd as / ,but ur placed under pub dir only.
ftp> ls -->shows remote machines file/dir list
ftp> ls -->shows remote machines file/dir list
ftp> !ls -->shows local machines file/dir list
ftp> get <file> -->Get file FROM remote machine




If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment