Back to Blog

Connect to server using Console

   Mariusz Antonik    Oracle Cloud (OCI)    2 min read    354 views

I had a problem with server and I need to connect to server using SSH connection

I prepared the keys upload pulic key to console but when tryint to connect I was getting failure:

 

mariusz@mariusz-System-Product-Name:~/.ssh$ ssh -o ProxyCommand='ssh -W %h:%p -p 443 ocid1.instanceconsoleconnection.oc1.iad.anuwcljrqkgrq3ycepunb6o65zfmxd6jx6mfmoihaj6tkrxzeuobhymd4aeq@instance-console.us-ashburn-1.oci.oraclecloud.com' ocid1.instance.oc1.iad.anuwcljrqkgrq3ycin6d42woh4w5cl6l4mftj42szaxuzsej6l3ntn2pwsia=================================================
IMPORTANT: Use a console connection to troubleshoot a malfunctioning instance. For normal operations, you should connect to the instance using a Secure Shell (SSH) or Remote Desktop connection. For steps, see https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/accessinginstance.htmFor more information about troubleshooting your instance using a console connection, see the documentation: https://docs.cloud.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm#four
=================================================
Unable to negotiate with UNKNOWN port 65535: no matching host key type found. Their offer: ssh-rsa

 

 

Looks like reason was because we had a missmatch between OCI version of the ssh and my version 

Solution:

ssh \
  -o HostKeyAlgorithms=+ssh-rsa \
  -o PubkeyAcceptedAlgorithms=+ssh-rsa \
  -o ProxyCommand='ssh -W %h:%p -p 443 ocid1.instanceconsoleconnection.oc1.iad.anuwcljrqkgrq3ycepunb6o65zfmxd6jx6mfmoihaj6tkrxzeuobhymd4aeq@instance-console.us-ashburn-1.oci.oraclecloud.com' \
  ocid1.instance.oc1.iad.anuwcljrqkgrq3ycin6d42woh4w5cl6l4mftj42szaxuzsej6l3ntn2pwsia

 

We add specificly ssh-rsa format for this command and now connection was estabilished

 

Tags: #OCI
About the Author
Mariusz Antonik

Oracle Cloud Infrastructure expert and consultant specializing in database management and automation.

All Tags
#Advanced #alerts #amazon-linux-2023 #argo-cd #auditd #automation #backend-infrastructure #Bash #bash cpu monitoring script #bash monitoring #bash scripting #bash-scripts #Beginner #Best Practices #block volume backup #Capacity Planning #centos-ftp-migration #centralized-logging #cloud backup strategy #cloud-database-setup #cloud-networking #compute #cpu bottleneck #CPU Monitoring #cpu monitoring linux #cpu monitoring script linux #cpu trends #cpu usage trends #cpu usage trends linux #cpu-monitoring-without-tools #cpu-performance-decline-server #cpu-performance-degradation-linux #cpu-usage-history-linux #create oracle db system in oci #cron #cron cpu monitoring #cron cpu monitoring linux #cron jobs #cron-monitoring #custom-linux-distribution #database #database monitoring #database performance #database-setup #detect slow queries mysql #devops #devops-help #disk capacity planning server #disk forecasting linux #disk growth trend linux #Disk Monitoring #disk usage #disk usage script linux #disk usage trends #disk-capacity #disk-saturation-detection-linux #Early Detection #easy infrastructure monitoring #elasticsearch #firewall-rules #fleet-ops #free-tier #gitops-security #Guide #health dashboards #Health Reporting #historical server monitoring #how to monitor cpu usage linux #infrastructure #infrastructure health #infrastructure health dashboard #infrastructure health reporting #infrastructure monitoring #infrastructure monitoring report #infrastructure trends #infrastructure trends monitoring #Infrastructure Visibility #infrastructure-checklist #interview-prep #ip-allowlist #journald #kubernetes-security #lightweight linux monitoring #lightweight monitoring #linux #linux administration #linux cpu monitoring #linux cpu usage #linux disk capacity planning #linux disk usage #Linux monitoring #linux monitoring setup #linux monitoring tools #linux performance #linux performance monitoring #linux server #linux server monitoring #linux servers #linux storage #linux tools #linux-admin #linux-disk-monitoring #linux-performance-tuning #linux-remote-desktop #log-management #log-retention #logrotate #loki #low maintenance monitoring #monitor cpu usage over time linux #monitor linux server health #monitor server trends #monitor small production server #monitoring #monitoring without complexity #MySQL #mysql health reporting #MySQL monitoring #mysql optimization #MySQL Performance #mysql performance degradation #mysql performance monitoring #mysql performance trends #mysql query performance issues #mysql server monitoring #mysql slow queries #mysql slow query analysis #mysql slow query monitoring #mysql trends #mysql-health #mysql-heatwave #networking #networkpolicy #nsg #OCI #oci backup #oci bastion tutorial #oci block volume #oci infrastructure as code #OCI monitoring #oci networking #oci oracle database private subnet setup #oci oracle database tutorial #oci security #oci setup guide #oci terraform tutorial #oci tutorial for beginners #oci vcn terraform #oci virtual machine db system guide #oci-database #oci-mysql-heatwave #oci-mysql-heatwave-tutorial #oci-subnets #oracle base database service tutorial #oracle cloud bastion #oracle cloud free tier tutorial #oracle cloud infrastructure step by step #oracle cloud infrastructure tutorial #oracle cloud storage #oracle database on oci setup #oracle-cloud #oracle-cloud-mysql-database-service #oracle-cloud-mysql-setup #oracle-cloud-vcn-setup #Performance #Performance Degradation #performance monitoring #performance trend monitoring #performance trends #plan disk growth server #practical server monitoring #predict disk usage growth #private instance access #query optimization #remote-workstation-security #rhel-tuned #rollback #route-tables #rsyslog #Security #security lists #selinux #server #server health #server health reporting #server health weekly report #server monitoring #Server Performance #server trend analysis #server-health-checklist #server-security #server-security-checklist #server-trends #servers #simple cpu monitoring linux #simple linux monitoring #simple monitoring small business #simple monitoring system #simple ops monitoring #slow queries #slow query reporting mysql #small business infrastructure #small business IT #small business servers #small infrastructure monitoring #small server monitoring #small-business-tech #source-built-linux #ssh bastion #storage capacity planning linux #storage monitoring #subnets #sysadmin-checklist #System Health #system health reporting #terraform oci compute #terraform oracle cloud infrastructure #Trend Monitoring #trend-analysis #trends #tuned-adm #Tutorial #uptime-monitoring #vcn #vcn-design #vector #vsftpd #weekly-server-report #xrdp