Last active
April 12, 2023 19:29
-
-
Save pedrovasconcellos/f85e243c47aae6fcd76badeee5b9371c to your computer and use it in GitHub Desktop.
Use SSH with VM Linux Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Transfer folder with files to vm | |
scp -r -i certificate.pem home/userlocal/diretory uservm:ip_vm_host home/uservm/directory | |
# Connect to vm | |
ssh -i certificate.pem uservm:ip_vm_host | |
# INSTALL .NET 7 | |
# 1) Add package | |
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
rm packages-microsoft-prod.deb | |
# 2) a) Configuring the Microsoft source package | |
sudo vim /etc/apt/preferences | |
# b) Add text below without comment | |
# Package: * | |
# Pin: origin “packages.microsoft.com” | |
# Pin-Priority: 1001 | |
# 3) Update | |
sudo apt update | |
#4) Install .NET SDK 7.0 | |
sudo apt install dotnet-sdk-7.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment