I have two centos 7 Server machines. "Machine-1" is having two NIC cards, one with public ip and another with private ip address. "Machine-2" is having a one NIC card with a private IP Address. how can i configure NAT on machine-1 to forward all TCP Traffic coming on public ip to the private ip of machine-2.
Pls give me a solve.its give me pain
hi people,
i reinstalled my server with centos 7 to get familiar with it...
i have a laptop that im using cygwin on to ssh into the centos 7 server.
i ran ssh-keygen -t rsa on the server and now in .ssh i have a public and private key created.
i copied the public key from the server to my C:\cygwin64\home\Administrator\.ssh\known_hosts file
now when i input:
ssh userontheserver@serversip
it asks for the passphrase which i created when i did the keygen
on the server
when i put the passphrase in it says permission denied
and returns me to the command line
what am i doing wrong?
do i have the steps correct?
am i right in saying that you need to have the servers public key in your known_hosts file on the client computer to get communication working?
I have a shell script that currently changes the mac address of eth0 repeatedly. However, it does not change the public IP address, confirmed by wget -qO- ipinfo.io/ip .
PERIOD=10
while [ 1 ]
do
echo "Changing mac address..."
let lastup=`date +%s`
macchanger -A eth0
let diff=`date +%s`-$lastup
if [ "$diff" -lt "$PERIOD" ]
then
sleep $(($PERIOD-$diff))
echo "Changed mac address successfully."
echo
elif [ "$diff" -gt "$PERIOD" ]
then
echo "Command took longer than iteration period of $PERIOD seconds!"
fi
done
The script needs to change the IP Address statically.
Also, ultimately, what I am trying to accomplish, for security reasons, is to frequently and automatically change a computer's public IP address and mac address. This way, my office's computers, when using the Internet, has an additional form of protection.
Hello,
I generated and uploaded a public key through SSH Client software to our dedicated server. It works fine from the computer I have generated.
My laptop windows become corrupt and I downloaded this key from my email that is attached previously.
Now I am trying to import in SSH Client but its throwing error that unable to read this key file
Can I generate public key from our dedicated server and upload as attachment in my email so that whenever I want I can use and access our server from any machine?
Please advise
Thanks in anticipation
hi guys,
i understand the concept of a public and private key for ssh signing and encryption...i just dont get the implementation.
if you have a client and a server and you want two way communication do both have to have each others public keys in the .ssh/authorized_keys files on each respectively?
should you use a password? does it matter if you want to run say rsync from one to the other with a cron job or script?
does anybody just have a breakdown of exactly what you need to do and how it works in different situations...
i found this:
https://www.digitalocean.com/communi...up-ssh-keys--2
seemed to help...but im still not 100% clear...
hi guys, ive altered the numbers for security but can someone tell me which one of these is my private ip address for this particular computer? im troubleshooting port forwarding and i want to make sure i have the right private ip address. i know the public one already. i used ifconfig to print this out. there are so many addresses that im not sure which is my private one for this particular computer. thanks
Link encap:Local Loopback
inet addr:133.5.7.1 Mask:255.5.6.2
inet6 addr: ::1/144 Scope:Host
UP LOOPBACK RUNNING MTU:44436 Metric:1
RX packets:26824 errors:0 dropped:0 overruns:0 frame:0
TX packets:26824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3268828 (3.2 MB) TX bytes:3268828 (3.2 MB)
wlan0 Link encap:Ethernet HWaddr 11:1f:8b:a5:98:c2
inet addr:10.1.1.33 Bcast:11.1.1.293 Mask:242.242.242.0
inet6 addr: fe70::23f:7bff:fea9:38c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1800 Metric:1
RX packets:244694 errors:0 dropped:0 overruns:0 frame:0
TX packets:247756 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:209624351 (209.6 MB) TX bytes:84885694 (84.8 MB)
I have 2 virtual machines of RHEL 7 installed on VMware. But the Ethernet card by default is virbr0. When i run both the machines simultaneously, IP address of both the machine shows same address when i run command ifconfig.
I want to switch to eth0 card.
Hi all
This is bothering me too much, please tell me how to change IP address of remote machine while using ssh successfully.
I follow these steps:
1. connect to remote server using 'ssh root@server'
2. Edit '/etc/sysconfig/network-scripts/ifcfg-eth0' file
3. issue 'service network restart' command... (at this point ssh connection gets hanged)
4. Break from hanged ssh connection (<ENTER>~.)
5. Wait for some time to let service restart
6. Then finally, ssh with new ip address.
All is fine, but last time, i did something wrong while assigning new IP address, and after service restart, remote server didn't get new ip address - and now i cant connect to remote server.
Fortunately, i had a friend there, who helped me correct the problem so that i can connect again.
But what to do when there is no one to help? Is there other way i should approach this problem?
Thanks
I have been asked to setup an SFTP which uses RSA public key authentication.
AS it was already in use I have opted to use CygWin and I can get it to work with passwords fine.
we are going to be hosting the SFTP server with users from the clients office connecting to it. The client has sent me their public key.
Having done LOts of reading and even more attempting to configure the server I just cant get it to work. Most of thetime I get..
ebug1: Host '127.0.0.1' is known and matches the ECDSA host key.
debug1: Found key in /home/ColoniAdmin/.ssh/known_hosts:1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ColoniAdmin/.ssh/id_rsa
debug1: Trying private key: /home/ColoniAdmin/.ssh/id_dsa
debug1: Trying private key: /home/ColoniAdmin/.ssh/id_ecdsa
debug1: Trying private key: /home/ColoniAdmin/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
I have once managed to get it to the point of asking for a passphrase for the private key but I don't have a private key (that I know of) just the public key the client sent us. and I certainly don't want to have to use passphrases
Their public key is in the authorized_key file on our server within the .ssh folder of their home folder. I have amended paswd and sshd_config to set home location and to allow RSA authentication.
All and any advice is super welcome, I have been doing this for 2 weeks now and i just wont work.
HELP HELP HELP!!!!!! ;-)
Thanks
I just installed Redhat 7 and try to config the network , add the IP address to network card , but I got the problem.
I modify the file /etc/sysconfig/network-scripts/ifcfg-enp0s3 , the configuration is as below , and then reboot .
DEVICE="enp0s3"
NETBOOT="yes"
HWADDR="08:00:27:15:38:B7"
TYPE="Ethernet"
BOOTPROTO="none"
NAME="enp0s3"
UUID="462f4834-4fe7-43a7-84e7-83b2722e94c1"
ONBOOT="yes"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"
After reboot , I use "ip addr show" still not shown the ip address , the ip address is still blank , would advise what is wrong ? thanks
The two charge controllers for my solar system are connected to my router allowing my computer to access them for data gathering. Using the address required in Windows is "tsmppt13190256/" for one of them ( tsmppt plus the serial number ). This address works with all browsers with windows .
Using the same browser on various Linux machines yields "web page not found" Morningstar ,who makes these excellent controllers , says they support only Windows. I've tried using the numbered ( 4 groups of 4 digits ) equal and even the "tiny URL" but nothing works .
I've tried adding ".,com " and HTTP:// "
How can I how can I get my Linux browsers to accept this address ?
Thanks a lot .
Ralph