Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

connect to gcp vm instance using ssh

ssh-keygen -t rsa -f ~/Desktop/key -C user

#login into GCP -> Compute Engine -> Add SSH keys on your instance
#copy your .pub key
#save instance settings

#now you can connect
ssh -i ~/Desktop/key user@vm_instance_ip
sudo -s #for root

#upload files with scp
scp -i ~/Desktop/key -r ws user@vm_instance_ip:~/

#done :)
Comment

ssh to gcp vm

gcloud compute ssh instance-b --project=PROJECT_ID --zone=ZONE
Comment

PREVIOUS NEXT
Code Example
Shell :: cloudflare localhost tunnel 
Shell :: display two content linux 
Shell :: kill user tty sessions terminal 
Shell :: ansible zypper add repository 
Shell :: kubenetes repo 
Shell :: how to uninstall nginx in ubuntu 20.04 
Shell :: tomcat run coljure 
Shell :: linux change all folders to 755 and files to 644 
Shell :: post clone remove line in file 
Shell :: bash pause in file read line by line 
Shell :: instsall typo3 
Shell :: git bash option is not coming 
Shell :: Send email with Gitlab docker image 
Shell :: bash nano search 
Shell :: install Llms on Ubuntu 
Shell :: linux firewall allow googlebot 
Shell :: when-i-start-ubuntu-it-enters-tty1-6-instead-of-my-desktop-how-do-i-get-to-de/65234#65234 
Shell :: Disable LAN proxy 
Shell :: nginx ssl configuration ubuntu with pfx file 
Shell :: backup software move file from certain time 
Shell :: how to install red hawk 
Shell :: using both ca cert and certificate between server and client 
Shell :: login to linux server from windows putty 
Shell :: what to never time in powershell 
Shell :: awk get last argument 
Shell :: keep ec2 instance connected on command line 
Shell :: mongodb container mongodump openshift 
Shell :: lancer un serveur express 
Shell :: Delete all users in OU 
Shell :: attach a task in taskscheilar using powershell 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =