Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp

Publié le: 15 avril 2019
sur la chaîne: Online Tutorial
8,889
71

Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp

#linuxtutorials #linuxcommands #devops

RedHat
------
redhat/suse/fedora/centos --- rpm -- .rpm
ubuntu -- dpkg -- .dpkg

rpm -ivh chef.rpm -- install
rpm -qa -- list all the packages
rpm - e chef -- remove

Ubuntu
--------
dpkg -i chef.dpkg -- install
dpkg -l -- list
dpkg -r chef -- remove

man pages -- to check the usage of a command
man ls --
rpm -help -- to check syntax

wget url -- downloads the package to linux machine

1 ) download to windows
copy it linux

winscp -- too copy

2 ) directly download to linux -wget

linux machine1 linux machine2

log file
rpm file

ftp - file transfer protocol
scp -- secure copy protocol

server1 server2
/a /b
chef.log

server1 scp/a/chef.log root@server2:/b --? copies /a/chef.log from server1 to server2 to /b
1)
server1 server2
/a /bl.log

server2
2) scp root@server2:/b/1.log /a -- copies /b/1.log from server2 to server1

ifonfig -- to list the ipaddress
ipconfig -- windows

scp /b/1.log 10.0.0.41:/

1) /etc/ssh/sshd_config
permitrootlogin yes

service ssh restart -- restart ssh

password -- to set a password

useradd -d /home/user1 -s "/bin/sh" -c "comment" -m -- to create user cat /etc/password

password

su - root@server2
su - user --
ssh -l user1 ip/hostname --
base -- ubuntu/xenial64

vagrant up --

vagrant ssh

sudo su -

redhat package manager

user
home directory
shell
ksh
shell
bash
comment


Sur cette page du site, vous pouvez voir la vidéo en ligne Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Online Tutorial 15 avril 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 8,889 fois et il a aimé 71 téléspectateurs. Bon visionnage!