I'm trying to ssh to tryhackme's server (the lag with the attack box is just too annoying). I figured out I had to install the server. but now when I run it it just logs me into my own system. Not tryhackme's.
Here is what I did if you want to look:
michael@desktop1:~$ ifconfig
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500 inet 10.xxx.yyy.zzz netmask 255.255.128.0 destination 10.xxx.yyy.zzz inet6 ------------------------ prefixlen 64 scopeid 0x20<link> unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 103 bytes 6600 (6.6 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 -snip-
michael@desktop1:~$michael@desktop1:~$ ssh 10.xxx.yyy.zzz ssh: connect to host 10.xxx.yyy.zzz port 22: Connection refused
(google told me service might not be running)
michael@desktop1:~$ sudo service ssh status [sudo] password for michael: Unit ssh.service could not be found.
michael@desktop1:~$ sudo systemctl start ssh.service Failed to start ssh.service: Unit ssh.service not found.
(google told me server might not be installed)
michael@desktop1:~$ sudo apt install openssh-server
michael@desktop1:~$ ssh 10.xxx.yyy.zzz michael@10.xxx.yyy.zzz's password: 1 device has a firmware upgrade available. Run fwupdmgr get-upgrades for more information. 1 device has a firmware upgrade available. Run fwupdmgr get-upgrades for more information. Last login: Fri Jan 20 19:54:23 2023 from 10.x.yy.zzz michael@desktop1:~$ ls Business gparted_details.htm PIC06448.eARW PIC06948.cRW Templates crontab.log Jameson.oolite-save PIC06484.aARW PIC06948.dRW Videos Desktop Music PIC06484.eARW PIC06948.eARW Downloads 'My Games' PIC06948.aARW Pictures GNUstep oolite-saves PIC06948.bRW Public michael@desktop1:~$ exit logout Connection to 10.xxx.yyy.zzz closed. michael@desktop1:~$ ls Business gparted_details.htm PIC06448.eARW PIC06948.cRW Templates crontab.log Jameson.oolite-save PIC06484.aARW PIC06948.dRW Videos Desktop Music PIC06484.eARW PIC06948.eARW Downloads 'My Games' PIC06948.aARW Pictures GNUstep oolite-saves PIC06948.bRW Public michael@desktop1:~$