Tag Info

New answers tagged


Ok, the problem was CentOS 7 blocking ports by default. I managed to connect to my server on port 2004 after executing the following command: firewall-cmd --zone=public --add-port=2004/tcp And this command opens the port when the VM reboots: firewall-cmd --zone=public --add-port=2004/tcp --permanent I found the information here.


Some consumer-grade routers are confused by the bridged mode of VirtualBox, because then the host and the guest share the same MAC address. I suggest you add a second interface to your VM in host-only mode, for communcation with the host.


Most likely if the server is available and you have an IP address for that server you should be able to ssh user@server-ip or ssh server-ip -l user but this will not work if you don't have sshd running on the server to accept ssh/secured tunneling. You need to enable sshd on your server by issuing: sudo /etc/init.d/sshd start You should also look ...


You can do this by setting up your ~/.ssh/ssh_config file and using public-key authentication. For each server you want to log into, set up a Host section in the file with appropriate User and IdentityFile entries. See man ssh_config for more information.


Yes! This is a big deal, and incredibly common. And there are two basic approaches. One way is simply with scripted installs, as for example used in Fedora, RHEL, or CentOS's kickstart. Check this out in the Fedora install guide: Kickstart Installations. For your simple case, this may be sufficient. (Take this as an example; there are similar systems for ...


Almost all popular Linux OS by default can be accessed remotely. Eg: Ubuntu, Fedora, CentOS, Debian etc. For graphical, you need to simply enable the Desktop Sharing in Ubuntu and in Fedora it is Remote Desktop. For CLI access you have the openssh.


To configure and use a standard Linux server, you normally don't need any graphical interface - everything can be done via command-line access (eg ssh). Even if you want to run single applications with a graphical interface on your server (there are a few which cannot be avoided, but not too many, for example Oracle RDBMS Installer), you don't need 'remote ...


Most linux distributions come with ssh. Double check to see that ssh will initiate on boot. From there you can log in from a different machine, install, configure, and whatever else you need to do. You can install vnc if you want to be able to see the computer's desktop and work on it remotely. A better option is to just use the -X flag when using ssh, ...


Perhaps a 'funny' script in the ~/bin/ or /etc/bin/. Do something like replace the functionality of LS, cat or CD to behave a little differently and give them a bit of a tip-off that something is amiss, (the first one that comes to mind is to have ls/cd has a change to list/move the wrong folder) and have the code listed in a comment of the sh file. Perhaps ...


Run an nc listener that echo's out one of the voucher codes when you telnet or nc to it. If they look at the file, they get it too. #!/bin/sh nc -i 2 -l -p 3128 -c "echo amazoncode" Name it something useful, like squid Create some local firewall rules with names or parameters of amazon codes. iptables -N amazoncode -P ACCEPT iptables -I INPUT -j ...


Some ideas: Plain-text file in a user's home directory ("Amazon Code.txt" or something else obvious), world-readable Plain-text file in a user's home directory, not world-readable but the user has an easily-guessed password Process with the key obfuscated in the source-code, but it calls something else (say system("sleep 864000 $key")) that exposes the key ...


I don't know if this method is something that might interest the students. I create a file as amazoncode with the original code. cat amazoncode 125622234 Now, encrypt the file using the below command. openssl aes-128-cbc -salt -in amazoncode -out amazoncode.aes -k somepassword somepassword is the password that you set for the file. Now, remove the ...

Top 50 recent answers are included