how does one connect to sandbox ssh using command prompt - ssh

am trying to connect ssh but am being blocked all the time
accessing ssh through command prompt, cmd prompt it took the link from sandbox and asked for password but after that it gave me permission denied message

Related

How to connect VS Code to server without RDP

How to connect VS Code to linux server by not login to remote desktop
Current way I login:
open Personal Computer >> Establish VPN connection >> open RDP and login >> open putty/VS code and open SSH connection (linux) write code
Is there a way I can connect VS Code/Putty (Locally installed in PC) to SSH development box without RDP?
example - Local Personal Computer >> Establish VPN connection >> open putty/VS code (locally installed) to establish/connect SSH development server(linux)
When I try SSH from local machine, it always give - time out error.. but with same connection setting (ssh username#servername.companyname.com) if try from remote desktop (work computer) it works fine

Can I SSH to Local Weblogic AdminServer via Command Line?

From Eclipse, when I startup my local Oracle Weblogic Server 12c to run my web application locally, I can visit the Weblogic AdminServer Console at localhost:7001/console. However is there way I can login to the AdminServer via putty with a Command Line interface?
What would my hostname or IP address be for the login, and my port would be 22? Then I would expect to use the same username and password I use to login to the Server console GUI.
The Weblogic admin console does not listen on SSH protocol, the best you can do is log in to the local server where Weblogic is running, and access the scripting tool, via something like the following
wlst.sh
connect('weblogic','password','t3://localhost:7001');
And then run commands that Weblogic understands. The username and password you would have set up during installation. You can also invoke it from the command line via Java, as shown in the following tutorial.
Weblogic Scripting Tool tutorial

TFS SSH task in Windows Machine failed

I tried to connect a Windows machine that exist in another domain than our TFS 2018.3 exist.
I added "SSH" task, and I created new SSH endpoint with the remote machine IP, username and password, without a private key. I configured in the remote machine access of SSH for this username & password.
In the SSH task, I configure a simple shell command: ls.
The TFS agent succeeded to connect the machine but failed with this error:
Unable to execute command or shell on remote system: Failed to Execute process.
Full log:
2019-08-15T13:22:54.1491966Z Trying to setup SSH connection to ********#myserverinanotherdomain:22
2019-08-15T13:22:54.4085564Z Successfully connected.
2019-08-15T13:22:54.8120684Z tr -d '\015' <"./sshscript_1565875374136" > "./sshscript_1565875374136._unix"
2019-08-15T13:22:54.8121422Z Unable to execute command or shell on remote system: Failed to Execute process.
2019-08-15T13:22:54.8121745Z
2019-08-15T13:22:54.8180230Z ##[error]Command tr -d '\015' <"./sshscript_1565875374136" > "./sshscript_1565875374136._unix" exited with code 4294967295.
I think because it's a Windows machine and I try to execute a shell script. If I will install Git bash, for example, it can help?
Does the SSh task support only Linux machines? if yes, how can I connect a machine that exists in another domain?
SSH being a communication protocol is agnostic of OS. It is not Linux specific. But there seems to be a limitation for using SSH task on windows machine/build agent. Take a look at this similar question here: Not able to run bash script from windows using vsts.
I haven't found a documentation that clearly declare the SSh task not support on Windows machine. But I have found a task which also uses SSH--Copy Files Over SSH task. And according to the Q&A in official link:
Is this task supported for target machines running operating systems
other than Linux?
This task is intended for target machines running Linux.
For copying files to a macOS machine, this task may be used, but authenticating with a password is not supported.
For copying files to a Windows machine, consider using Windows Machine File Copy.
Instead of SSH. You should be able to use a local account on the build server and when entering the credentials. The account must have the same password as the account in the other domain. In other works make sure build account which run on the build agent are able to connect another domain.
Also make sure there is a trust relationship between the domains.

How to access Magento bitnami on GCP database and run SQL statement

How to access Magento bitnami on GCP database and run SQL statements. I do not know where and how to connect to the Magento bitnami on GCP database and run SQL statements
Bitnami Engineer here.
You have different options to run those SQL commands:
Access the instance using a SSH connection and connect to MySQL using the command line. You will need to configure the SSH key in the Google Console in case you don't have a valid one. Then, you can access MySQL by running this command
mysql -u root -p bitnami_magento
Create a SSH tunnel to access phpMyAdmin: We configure phpMyAdmin to only be accessible using a local connection. The SSH tunnel will allow you access /phpmyadmin and you could run the SQL commands there.
https://docs.bitnami.com/google/apps/magento/administration/access-phpmyadmin/
If you need more information about how SSH works and how to access the instance, please check our documentation
https://docs.bitnami.com/google/faq/get-started/connect-ssh/

Remote WMI as Administrator on Windows 8

I am trying to connect to a remote machine and run a script that gets me the OS-es from that machine. To do this I connect through WMI, run cmd /c bcdedit -v > bcd.txt. For some reason I keep getting access denied, the same thing as running bcdedit from a non-administrator account.
The WMI Security is set, that is running notepad or calc works perfectly. The user which is logged on, and which is used to connect to the machine is the Administrator. I'm stuck at this for days without any solution. Any workaround is welcome.
Note: OS in question is Windows 8
Note2: Workarounds tried(and failed): running another process that schedules a task with bcdedit(access denied), trying to set the process to run as administrator from the properties box(couldn't even start from WMI remotely)
Local admin account and network admin account are two different authorities.
You can access system BCD using local admin account or any account having needed access tokens.
I am not sure the information is available over SNMP.
Another way is to allow remote access to registry
and decode information from local \HKLM\BCD00000000 branch (mirrors system BCD).