{"id":58217,"date":"2023-02-03T03:01:16","date_gmt":"2023-02-02T17:01:16","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=58217"},"modified":"2023-02-01T11:49:38","modified_gmt":"2023-02-01T01:49:38","slug":"apachephpmysql-web-hosting-website-migration-ssh-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/apachephpmysql-web-hosting-website-migration-ssh-tutorial\/","title":{"rendered":"Apache\/PHP\/MySql Web Hosting Website Migration ssh Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/rsa_key_idea_after_migration.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Apache\/PHP\/MySql Web Hosting Website Migration ssh Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/rsa_key_idea_after_migration.jpg\" title=\"Apache\/PHP\/MySql Web Hosting Website Migration ssh Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Apache\/PHP\/MySql Web Hosting Website Migration ssh Tutorial<\/p><\/div>\n<p>One of the most amazing aspects to the <a target=_blank title='Crazy Domains' href='http:\/\/www.crazydomains.com.au'>Crazy Domains<\/a> performed data migration for the RJM Programming domain on 17\/1\/2023, thanks, was the way, from our point of view, it was &#8230;<\/p>\n<table border=20 style=width:100%;>\n<tr>\n<th>Changed<\/th>\n<th>No change<\/th>\n<\/tr>\n<tr>\n<td>IP address<\/td>\n<td>Any usernames<\/td>\n<\/tr>\n<tr>\n<td>Power management<\/td>\n<td>Any passwords<\/td>\n<\/tr>\n<tr>\n<td>DNS mappings<\/td>\n<td>ssh access (just with changed IP address slotted in for old one)<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>sftp access<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>cPanel access (just with changed IP address slotted in for old one)<\/td>\n<\/tr>\n<\/table>\n<p> &#8230; with so little affecting our day to day interactions with the website.<\/p>\n<p>And so, on this topic, adding to the recent <a title='Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial' href='#a\/php\/mswhwmdnst'>Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial<\/a> we want to hone in on that <i>Any usernames and Any passwords<\/i> resisting any need to change.  How so?  Well, it&#8217;s to do with how ssh and sftp and RSA keys and Fingerprints work.  Let&#8217;s ask experts some questions.<\/p>\n<blockquote><p><a target=_blank title='How does ssh use rsa keys to help with login?' href='https:\/\/www.google.com\/search?q=How+does+ssh+use+rsa+keys+to+help+with+login%3F&#038;rlz=1C5CHFA_enAU973AU973&#038;sxsrf=AJOqlzVVmAqUisylhNIjpeu1eq64TvT2Ww%3A1675064060068&#038;ei=_HLXY7_oA82Pg8UPrr2CgA8&#038;ved=0ahUKEwi_1pry4-78AhXNx6ACHa6eAPAQ4dUDCBA&#038;uact=5&#038;oq=How+does+ssh+use+rsa+keys+to+help+with+login%3F&#038;gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIECCMQJzoKCAAQRxDWBBCwAzoHCCMQsAIQJ0oECEEYAEoECEYYAFCMB1jQC2C5D2gBcAF4AIABsAGIAc0CkgEDMC4ymAEAoAEByAEIwAEB&#038;sclient=gws-wiz-serp'>How does ssh use rsa keys to help with login?<\/a><\/p><\/blockquote>\n<p>And we liked <a target=_blank href='https:\/\/sectigo.com\/resource-library\/what-is-an-ssh-key' title='What Is an SSH Key? Generation, Authentication, Key Pair Info &#038; More'>What Is an SSH Key? Generation, Authentication, Key Pair Info &#038; More<\/a> &#8230;<\/p>\n<blockquote cite='https:\/\/sectigo.com\/resource-library\/what-is-an-ssh-key'><p>\nHow does SSH RSA key work?<br \/>\n<br \/>\nAn SSH key relies upon the use of two related keys, a public key and a private key, that together create a key pair that is used as the secure access credential. The private key is secret, known only to the user, and should be encrypted and stored safely.\n<\/p><\/blockquote>\n<p>That &#8220;stored safely&#8221; is the key <font size=1>(chortle, chortle)<\/font> to the cleverness of the system.  The key is stored on the same web server disk migrated, and so access to a username&#8217;s previous password is maintained that way.<\/p>\n<blockquote><p><a target=_blank title='How does ssh use a fingerprint to help with login?' href='https:\/\/www.google.com\/search?q=How+does+ssh+use+a+fingerprint+to+help+with+login%3F&#038;rlz=1C5CHFA_enAU973AU973&#038;sxsrf=AJOqlzV-y4dvypl71D4xW2-6Brm7uE5Rvg%3A1675064074983&#038;ei=CnPXY8LbO4_n4-EP5oieqAs&#038;ved=0ahUKEwjCiKn54-78AhWP8zgGHWaEB7UQ4dUDCBA&#038;uact=5&#038;oq=How+does+ssh+use+a+fingerprint+to+help+with+login%3F&#038;gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIFCAAQogQyBQgAEKIEOgcIIxCwAxAnOgoIABBHENYEELADOgQIIRAKSgQIQRgASgQIRhgAUJoEWKctYJc7aAFwAHgAgAHpAYgBsBSSAQYwLjExLjOYAQCgAQHIAQnAAQE&#038;sclient=gws-wiz-serp'>How does ssh use a fingerprint to help with login?<\/a><\/p><\/blockquote>\n<p>And we liked <a target=_blank href='https:\/\/docs.rackspace.com\/support\/how-to\/rackspace-cloud-essentials-check-the-ssh-host-fingerprint-of-a-server-with-the-web-console\/#:~:text=Secure%20Shell%20(SSH)%20uses%20a,the%20host%20key%20generates%20randomly.' title='Check the SSH host fingerprint of a server with the web console'>Check the SSH host fingerprint of a server with the web console<\/a> &#8230;<\/p>\n<blockquote cite='https:\/\/docs.rackspace.com\/support\/how-to\/rackspace-cloud-essentials-check-the-ssh-host-fingerprint-of-a-server-with-the-web-console\/#:~:text=Secure%20Shell%20(SSH)%20uses%20a,the%20host%20key%20generates%20randomly.'><p>\nSecure Shell (SSH) uses a fingerprint generated with the unique server host key so that a client can identify the server. Whenever the host fingerprint changes, SSH issues the following warning: The host fingerprint can&#8217;t be verified or it has changed. When you configure the SSH server, the host key generates randomly.\n<\/p><\/blockquote>\n<p>And so, we can see that the fingerprint mechanism can help the user authenticate, and have the key refresh itself, in the new web server IP address environment, as you can see in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/rsa_key_idea_after_migration.jpg\" title='Click picture'>today&#8217;s tutorial picture<\/a>.<\/p>\n<p>Cute, huh?!<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/apache\/php\/mysql-web-hosting-website-migration-ssh-tutorial\/'>Apache\/PHP\/MySql Web Hosting Website Migration ssh Tutorial<\/a>.<\/p-->\n<hr>\n<p id='a\/php\/mswhwmdnst'>Previous relevant <a target=_blank title='Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/apache\/php\/mysql-web-hosting-website-migration-dns-tutorial\/'>Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/GeoChart\/dns_data_migration.gif\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/GeoChart\/dns_data_migration.gif\" title=\"Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial<\/p><\/div>\n<p>Regarding Apache\/PHP\/MySql web hosting, and the recent <a target=_blank title='Apache\/PHP\/MySql Web Hosting Website Migration DNS Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/apachephpmysql-web-hosting-website-migration-tutorial'>Apache\/PHP\/MySql Web Hosting Website Migration Tutorial<\/a>&#8216;s subject matter regarding a <a target=_blank title='Crazy Domains' href='http:\/\/www.crazydomains.com.au'>Crazy Domains<\/a> inspired Data Migration here at RJM Programming on 17\/1\/2023, we wanted to go over a last set of <a target=_blank title='Domain Name System information from Wikipedia, thanks' href='https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System'>DNS<\/a> setting &#8230;<\/p>\n<blockquote cite='https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System'><p>\nThe Domain Name System (DNS) is a hierarchical and distributed naming system for computers, services, and other resources in the Internet or other Internet Protocol (IP) networks. It associates various information with domain names assigned to each of the associated entities. Most prominently, it translates readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols.[1] The Domain Name System has been an essential component of the functionality of the Internet since 1985.\n<\/p><\/blockquote>\n<p> &#8230; steps that represented that final &#8220;tying the knot&#8221; of repositioning the RJM Programming domain to a new IP address and allowing cPanel and ssh and sftp website access methods not have to change regarding username and password usage, just IP addresses, perhaps totally &#8220;behind the scenes&#8221;.  Think of it like a &#8220;renaming the underbelly&#8221; exercise, perhaps!<\/p>\n<p>Until these DNS settings are adjusted in &#8220;A records&#8221; up at the web hoster by the Webmaster or Web Hoster, and there is, typically, about a five minute wait afterwards, the website cannot be reached via your usual &#8230;<\/p>\n<p><code><br \/>\n<a target=_blank title='https:\/\/www.rjmprogramming.com.au' href='https:\/\/www.rjmprogramming.com.au'>https:\/\/www.rjmprogramming.com.au<\/a><br \/>\n<\/code><\/p>\n<p> &#8230; web browser address bar way to navigate to the Landing Page of the RJM Programming domain.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d58132' onclick='var dv=document.getElementById(\"d58132\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/dns\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58132' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d58217' onclick='var dv=document.getElementById(\"d58217\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/ssh\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58217' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>One of the most amazing aspects to the Crazy Domains performed data migration for the RJM Programming domain on 17\/1\/2023, thanks, was the way, from our point of view, it was &#8230; Changed No change IP address Any usernames Power &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/apachephpmysql-web-hosting-website-migration-ssh-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,25,29,37],"tags":[53,85,249,270,293,337,347,386,418,4234,629,672,1565,2117,1564,4233,1127,1129,1190,1319,1563,1411],"class_list":["post-58217","post","type-post","status-publish","format-standard","hentry","category-elearning","category-networking","category-operating-system","category-tutorials","tag-access","tag-apache","tag-configuration","tag-cpanel","tag-data-migration","tag-disk","tag-dns","tag-encryption","tag-file","tag-fingerprint","tag-ip-address","tag-key","tag-login","tag-migration","tag-password","tag-rsa-key","tag-settings","tag-sftp","tag-ssh","tag-tutorial","tag-username","tag-web-server"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58217"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=58217"}],"version-history":[{"count":6,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58217\/revisions"}],"predecessor-version":[{"id":58223,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58217\/revisions\/58223"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=58217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=58217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=58217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}