{"id":14027,"date":"2017-12-24T20:32:34","date_gmt":"2017-12-25T01:32:34","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=14027"},"modified":"2017-12-24T20:32:34","modified_gmt":"2017-12-25T01:32:34","slug":"ssh-sshd-openssh-centos-redhat-linux","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14027","title":{"rendered":"SSH\/SSHD\/OpenSSH in CentOS\/Redhat Linux"},"content":{"rendered":"<p>Experiment with SSH\/SSHD\/OpenSSH in CentOS\/Redhat Linux<\/p>\n<p>Yes, from\u00a0 my history (Probably a review for the technical people, who already knew these sometimes in the past)<\/p>\n<p>461 echo &#8220;dec 24th, 2017&#8221;<br \/>\n462 vim \/etc\/ssh\/sshd_config<\/p>\n<p>463 echo &#8220;SSH Related Commands&#8221;<br \/>\n464 scp -&gt; secure copy<br \/>\n465 tscp -&gt; secure copy for windows<br \/>\n466 sftp -&gt; secure ftp<br \/>\n467 slogin -&gt; secure login &#8211; alternative to rlogin<br \/>\n468 ssh -&gt; provides secure telnet, secure rlogin<br \/>\n469 ssh-add -&gt; provides DSA\/ECDSA\/RSA characteristics to ssh-agent<br \/>\n470 ssh-agent<\/p>\n<p>&nbsp;<\/p>\n<p>471 ssh-agent output<br \/>\n472 SSH_AUTH_SOCK=\/tmp\/ssh-DQP6FzPIZvG7\/agent.3903; export SSH_AUTH_SOCK;<br \/>\n473 SSH_AGENT_PID=3904; export SSH_AGENT_PID;<br \/>\n474 echo Agent pid 3904;<\/p>\n<p>475 ssh-copy-id -&gt; copy keys to remote system (manual copy is also an option, you can use scp as well)<br \/>\n476 ssh-keygen: generates public and private key<\/p>\n<p>&nbsp;<\/p>\n<p>477 SSH components: the server with the SSH daemon. The client with scp, sftp, slogin, ssh, ssh-copy-id. and the openssh packgae itself to provide ssh-ketgen and different modules and libraries.<br \/>\n478 ssh-agent : authentication agent that also holds private keys<br \/>\n479 cat \/etc\/ssh\/sshd_config &gt; system wide ssh config file<br \/>\n480 cat \/etc\/ssh\/sshd_config<\/p>\n<p>481 cat \/etc\/ssh\/ssh_config<br \/>\n482 vim \/etc\/ssh\/ssh_config<br \/>\n483 vim \/etc\/ssh\/sshd_config<br \/>\n484 cat \/etc\/sysconfig\/sshd<\/p>\n<p>485 cat \/etc\/sysconfig\/sshd -&gt; server configuration file<br \/>\n486 cat \/var\/log\/secure<br \/>\n487 cat \/var\/log\/secure -&gt; related messages<\/p>\n<p>488 cat \/etc\/passwd<br \/>\n489 useradd user1<br \/>\n490 passwd user1<br \/>\n491 su user1<br \/>\n492 useradd user100<br \/>\n493 passwd user100<br \/>\n494 su user100<\/p>\n<p>496 ipaddr<br \/>\n497 ip addr<br \/>\n498 nmtui<br \/>\n499 ip addr<br \/>\n500 su user1<\/p>\n<p>501 exit<br \/>\n502 history &gt; ssh_history.txt<br \/>\n503 history<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>after switching to user100<\/p>\n<p>&nbsp;<\/p>\n<p>ssh 192.168.12.45<br \/>\n4 ssh 192.168.12.45 \/bin\/ls -la<\/p>\n<p>exit<\/p>\n<hr \/>\n<p>cd ~<\/p>\n<p>14 touch file1<br \/>\n15 scp file1 192.168.12.45:\/home\/user100<br \/>\n16 sftp 192.168.12.45<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Experiment with SSH\/SSHD\/OpenSSH in CentOS\/Redhat Linux Yes, from\u00a0 my history (Probably a review for the technical people, who already knew these sometimes in the past) 461 echo &#8220;dec 24th, 2017&#8221; 462 vim \/etc\/ssh\/sshd_config 463 echo &#8220;SSH Related Commands&#8221; 464 scp -&gt; secure copy 465 tscp -&gt; secure copy for windows 466 sftp -&gt; secure ftp &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14027\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1231],"tags":[],"class_list":["post-14027","post","type-post","status-publish","format-standard","hentry","category-----linux-and-unix","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":67791,"url":"http:\/\/bangla.sitestree.com\/?p=67791","url_meta":{"origin":14027,"position":0},"title":"Misc. on AWS, Linux, Git, SSH, Development Platform #By Sayed Ahmed #Misc. Reading #RHCSA","author":"Author-Check- Article-or-Video","date":"July 28, 2021","format":false,"excerpt":"Restart MySQL server on MacOS https:\/\/coolestguidesontheplanet.com\/start-stop-mysql-from-the-command-line-terminal-osx-linux\/ Ubuntu: http:\/\/askubuntu.com\/questions\/82374\/how-do-i-start-stop-mysql-server Macos: sudo apachectl start Redhat: https:\/\/access.redhat.com\/documentation\/en-US\/Red_Hat_Enterprise_Linux\/6\/html\/Managing_Confined_Services\/chap-Managing_Confined_Services-MySQL.html SSH, Secure copy (SCP), Sync (rsync) with Amazon AWS (Sure I did work with and used the following concepts) Sure, did configure development and deployment platform on AWS This works: ssh -i \/path\/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com you might\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/PLUA7SYgJYDFqYR7YRow8cwX_RSgTJPCQH\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":67602,"url":"http:\/\/bangla.sitestree.com\/?p=67602","url_meta":{"origin":14027,"position":1},"title":"Experiment with SSH and TCP Wrappers #DevOps","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"The idea was : use two servers; server1, and server2 create user: user1 in both server1 and server2 use nmtui to assign IP Addresses to both use ifdown and ifup to check if IPs are assigned properly change \/etc\/hosts and add the server ips and names use ping to know\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78585,"url":"http:\/\/bangla.sitestree.com\/?p=78585","url_meta":{"origin":14027,"position":2},"title":"SSH","author":"Author-Check- Article-or-Video","date":"November 4, 2025","format":false,"excerpt":"From AI tools as is \ud83d\udd10 Understanding SSH (Secure Shell): How It Works and Why It Matters When you connect to a remote server or transfer files securely over the internet, you\u2019re likely using SSH \u2014 Secure Shell. SSH has become the standard protocol for secure communication between computers, system\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78587,"url":"http:\/\/bangla.sitestree.com\/?p=78587","url_meta":{"origin":14027,"position":3},"title":"SSH Interaction from AI Tools","author":"Author-Check- Article-or-Video","date":"November 4, 2025","format":false,"excerpt":"From AI Tools as is (We feed the steps initially): Absolutely! I\u2019ve updated the IP addresses, ephemeral port, and rewritten sentences for clarity while keeping it WordPress-friendly and SEO-ready. Here\u2019s the refreshed version: \ud83d\udd10 SSH Interaction and Session Establishment Explained Secure Shell (SSH) is the standard protocol for connecting securely\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22776,"url":"http:\/\/bangla.sitestree.com\/?p=22776","url_meta":{"origin":14027,"position":4},"title":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 20, 2021","format":false,"excerpt":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder The following Linux commands helped sudo chown -R username:username \/home\/username\/.ssh sudo chmod 0700 \/home\/username\/.ssh sudo chmod 0600 \/home\/username\/.ssh\/authorized_keys Also, added the following lines into the file \/etc\/ssh\/sshd_config -> did not check whether these are really required\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":71502,"url":"http:\/\/bangla.sitestree.com\/?p=71502","url_meta":{"origin":14027,"position":5},"title":"Upgrade ubuntu 16 to ubuntu 18: AWS lightsail : challenges and solutions","author":"Sayed","date":"October 17, 2021","format":false,"excerpt":"Must read: AWS Lightsail upgrade Ubuntu 16.04 LTS to 18.04 LTS https:\/\/www.cyberciti.biz\/faq\/aws-lightsail-upgrade-ubuntu-16-04-lts-to-18-04-lts\/ Promising: SSH not working post upgrade to Ubuntu 18.04 from 16.04 [AWS Lightsail] https:\/\/community.bitnami.com\/t\/ssh-not-working-post-upgrade-to-ubuntu-18-04-from-16-04-aws-lightsail\/76827 Instance firewalls in Amazon Lightsail https:\/\/lightsail.aws.amazon.com\/ls\/docs\/en_us\/articles\/understanding-firewall-and-port-mappings-in-amazon-lightsail Well: Upgrade from 2.2.3 to 2.4.1 direct? needs Ubuntu 18 to get php latest. you can just get\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14027"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14027\/revisions"}],"predecessor-version":[{"id":14028,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14027\/revisions\/14028"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14027"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}