r/fortinet • u/Delicious-Pea-5107 • 11d ago
Other / General Fortinet FortiSwitch SSH Setup
I have a FortiSwitch that is using the FortiLink to a FortiGate. I am trying to SSH into the FortiSwitch but am having problems with the credentials on the switch. I thought the password would be the FortiGate admin password, but it is not. Is there a way I could create a user for this to work, or what is the best way around this so I can SSH into the device?
9
Upvotes
6
u/Immediate-Drink6166 11d ago
I actually know the answer to one of these...
This is what I had to do to gain access via SSH.
https://docs2.fortinet.com/document/fortigate/7.4.11/fortios-release-notes/136353
2
u/sidthetaff NSE 7 11d ago
On the fortigate
Config switch-controller switch-profile
Edit default
Set login-passwd-override enable
Set login password xxxxx
Next
End
Admin password will be set to whatever you want it to be. If you then want to set different passwords per managed switch set the override to disable and set locally
1
u/Worldly-Stranger7814 11d ago
I hope it's trusted-hosts missing your source IP or range because if you haven't set trusted hosts on the admin user (and all other users down the line), you're gonna have a bad time.